LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

InteractiveMode Enumeration






Values for the ImageViewer.InteractiveMode property. .NET support Silverlight support
Syntax
'Declaration
 
Public Enum InteractiveMode 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As InteractiveMode
public enum InteractiveMode : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Windows.Controls.InteractiveMode = function() { };
Leadtools.Windows.Controls.InteractiveMode.prototype = {
LeadtoolsMemberMarker(replace me) };
public enum class InteractiveMode : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
CenterAt

Centers the image at the mouse coordinates for the last user click. The ImageViewer.InteractiveCenterAt event will fire one or more times during this mode with the current locations and status of the operation.

In this mode, the control will position the scrollbars according to user cursor clicks, therefore, this mode is only functional if the control has visible scrollbars (SizeMode is SizeMode.Normal or SizeMode.FitWidth and the viewport is less than the image size).

MagnifyGlass

Starts the MagnifyGlass. The ImageViewer.InteractiveMagnifyGlass event will fire one or more times during this mode with the current locations and status of the operation.

None

Default, no user interaction.

Pan

Allows the user to pan the image using the cursor. The ImageViewer.InteractivePan event will fire one or more times during this mode with the current locations and status of the operation.

In this mode, the control will position the scrollbars according to user cursor moves, therefore, this mode is only functional if the control has visible scrollbars (SizeMode is SizeMode.Normal or SizeMode.FitWidth and the viewport is less than the image size).

Scale

Allows the user to change the current scale factor of the image using the mouse. The ImageViewer.InteractiveScale event will fire one or more times during this mode with the current locations and status of the operation.

UserRectangle

User-defined rectangle. You should subscribe to the ImageViewer.InteractiveUserRectangle event to add your custom code to handle the rectangle drawn.

ZoomTo

Zooms the image to the rectangle created by the user. The ImageViewer.InteractiveZoomTo event will fire one or more times during this mode with the current locations and status of the operation.

Remarks

The ImageViewer and RasterImageViewer supports many interactive modes for user interaction with the cursor. To enable any of the interactive modes, set the ImageViewer.InteractiveMode property to any of the InteractiveMode enumeration members. Subsequent cursor down, move and up operations will be captured by the control to perform the required interactive mode.

Various events will occur during the interactive modes to allow you to get information, alter values, or cancel the operation all together.

Example

For XAML example, refer to ImageViewer.InteractiveMode.

For C#/VB examples, refer to ImageViewer.InteractiveMode.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Controls.InteractiveMode

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.Windows.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.