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



Occurs when the user performs a panning process in this control. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Event Pan As EventHandler(Of ImagePanViewerEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As ImagePanViewer
Dim handler As EventHandler(Of ImagePanViewerEventArgs)
 
AddHandler instance.Pan, handler
C++/CLI 
public:
event EventHandler<ImagePanViewerEventArgs^>^ Pan

Event Data

The event handler receives an argument of type ImagePanViewerEventArgs containing data related to this event. The following ImagePanViewerEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Gets or sets a value that indicates whether to cancel the current pan process. Supported in Silverlight, Windows Phone 7
Handled (Inherited from System.Windows.RoutedEventArgs) 
OriginalSource (Inherited from System.Windows.RoutedEventArgs) 
Rectangle Gets the current pan rectangle. Supported in Silverlight, Windows Phone 7
RoutedEvent (Inherited from System.Windows.RoutedEventArgs) 
Source (Inherited from System.Windows.RoutedEventArgs) 
Status Gets the current status of the pan process. Supported in Silverlight, Windows Phone 7

Example

For C#/VB examples, refer to ImagePanViewer.

Remarks

This event provides the current status of the pan operation: Begin, Panning, or End, as well as the current panning rectangle.

Requirements

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

See Also