| 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# | |
|---|---|
public event EventHandler<ImagePanViewerEventArgs> Pan | |
| C++/CLI | |
|---|---|
public: event EventHandler<ImagePanViewerEventArgs^>^ Pan | |
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.
| Property | Description |
|---|---|
| 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 |
For C#/VB examples, refer to ImagePanViewer.
This event provides the current status of the pan operation: Begin, Panning, or End, as well as the current panning rectangle.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family
Copy Code