| Visual Basic (Declaration) | |
|---|---|
Public Event InteractiveZoomTo() As InteractiveZoomToEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event InteractiveZoomToEventHandler InteractiveZoomTo() | |
| C++/CLI | |
|---|---|
public: event InteractiveZoomToEventHandler^ InteractiveZoomTo(); | |
| XAML Attributes Usage | |
|---|---|
<object InteractiveZoomTo=EventHandler<ExceptionRoutedEventArgs>/> ... | |
| Routed Event Information | |
|---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate |
| XAML Attributes Usage | |
|---|---|
<object InteractiveZoomTo=EventHandler<ExceptionRoutedEventArgs>/> ... | |
| Routed Event Information | |
|---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate |
This example zooms the image when dragging a rectangle on the image. Also, it displays the contents of the InteractiveZoomTo event in the console.
| Visual Basic | Copy Code |
|---|---|
Private Sub viewer_InteractiveZoomTo(ByVal sender As Object, ByVal e As BitmapSourceViewerRectangleEventArgs) | |
| C# | Copy Code |
|---|---|
private void viewer_InteractiveZoomTo(object sender, BitmapSourceViewerRectangleEventArgs e) | |
| XAML | Copy Code |
|---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="InteractiveZoomTo 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.ZoomTo.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family