LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
InteractiveModeUseClientCordinates Property
See Also 
Leadtools.Windows.Controls Namespace > ImageViewer Class : InteractiveModeUseClientCordinates Property



Gets or sets a value indicating whether the interactive mode coordinates should be in client or logical coordinates. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property InteractiveModeUseClientCordinates As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImageViewer
Dim value As Boolean
 
instance.InteractiveModeUseClientCordinates = value
 
value = instance.InteractiveModeUseClientCordinates
C# 
public bool InteractiveModeUseClientCordinates {get; set;}
C++/CLI 
public:
property bool InteractiveModeUseClientCordinates {
   bool get();
   void set (    bool value);
}

Property Value

true if the interactive mode coordinates should be in client coordinates, otherwise; false. Default value is false.

Remarks

When this control is using one of the interactive modes, a corresponding event will fire during the operation of the interactive mode with information on current coordinates and status of the event, as follows:

InteractiveMode Event
InteractiveMode.Pan ImageViewer.InteractivePan with data of type LineInteractiveEventArgs and coordinates in LineInteractiveEventArgs.Begin and LineInteractiveEventArgs.End.
InteractiveMode.CenterAt ImageViewer.InteractiveCenterAt with data of type PointInteractiveEventArgs and coordinates in PointInteractiveEventArgs.Position.
InteractiveMode.ZoomTo ImageViewer.InteractiveZoomTo with data of type RectangleInteractiveEventArgs and coordinates in RectangleInteractiveEventArgs.Bounds.
InteractiveMode.Scale ImageViewer.InteractiveScale with data of type LineInteractiveEventArgs and coordinates in LineInteractiveEventArgs.Begin and LineInteractiveEventArgs.End.
InteractiveMode.MagnifyGlass ImageViewer.InteractiveMagnifyGlass with data of type LineInteractiveEventArgs and coordinates in LineInteractiveEventArgs.Begin and LineInteractiveEventArgs.End.
InteractiveMode.UserRectangle ImageViewer.InteractiveUserRectangle with data of type RectangleInteractiveEventArgs and coordinates in RectangleInteractiveEventArgs.Bounds.

The various event argument data classes contain the current mouse coordinates, these coordinates will be in image (logical) coordinates when the value of InteractiveModeUseClientCordinates is set to the default value of false.

You can change the behavior of this control to fire the events with coordinates in physical (client) coordinates by setting the value of InteractiveModeUseClientCordinates to true.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also