| Visual Basic (Declaration) | |
|---|---|
Public Event InteractivePan() As InteractivePanEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event InteractivePanEventHandler InteractivePan() | |
| C++/CLI | |
|---|---|
public: event InteractivePanEventHandler^ InteractivePan(); | |
| XAML Attributes Usage | |
|---|---|
<object InteractivePan=EventHandler<ExceptionRoutedEventArgs>/> ... | |
| Routed Event Information | |
|---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate |
| XAML Attributes Usage | |
|---|---|
<object InteractivePan=EventHandler<ExceptionRoutedEventArgs>/> ... | |
| Routed Event Information | |
|---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate |
This example changes the mouse cursor when panning, and displays the contents of the InteractivePan event in the console.
| Visual Basic | Copy Code |
|---|---|
Private Sub viewer_InteractivePan(ByVal sender As Object, ByVal e As BitmapSourceViewerLineEventArgs) | |
| C# | Copy Code |
|---|---|
private void viewer_InteractivePan(object sender, BitmapSourceViewerLineEventArgs e) | |
| XAML | Copy Code |
|---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="InteractivePan Sample" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls"> | |
Only occurs when the BitmapSourceViewer.InteractiveMode property is set to BitmapSourceViewerInteractiveMode.Pan.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family