←Select platform

CreateControl Method

Summary

Creates the interactive service.

Syntax

C#
VB
WinRT C#
protected void CreateControl(  
   FrameworkElement owner, 
   FrameworkElement targetElement 
) 
Protected Sub CreateControl( _ 
   ByVal owner As FrameworkElement, _ 
   ByVal targetElement As FrameworkElement _ 
)  
protected void CreateControl(  
   FrameworkElement owner, 
   FrameworkElement targetElement 
) 
 function Leadtools.Controls.InteractiveService.CreateControl(  
   owner , 
   targetElement  
) 

Parameters

owner
The owner of the service. Optional and can be null. This is not used by InteractiveService but can be used by the application to pass any class and extra data. ImageViewer passes this parameter.

targetElement
The target canvas. This element is the target that will be used to check if the event is triggered on its surface and all coordinates will be translated based on its position. It is required and must be a valid canvas.

Return Value

The created InteractiveService object.

Requirements

Target Platforms

Help Version 19.0.2017.10.28
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly (WinRT / WPF / iOS / OS X / Android)