| Visual Basic (Declaration) | |
|---|---|
Public Event InteractiveScale() As InteractiveScaleEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event InteractiveScaleEventHandler InteractiveScale() | |
| C++/CLI | |
|---|---|
public: event InteractiveScaleEventHandler^ InteractiveScale(); | |
| XAML Attributes Usage | |
|---|---|
<object InteractiveScale=EventHandler<ExceptionRoutedEventArgs>/> ... | |
| Routed Event Information | |
|---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate |
| XAML Attributes Usage | |
|---|---|
<object InteractiveScale=EventHandler<ExceptionRoutedEventArgs>/> ... | |
| Routed Event Information | |
|---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate |
This example lets you drag the mouse to scale an image. Also, it displays the contents of the InteractiveScale event in the console.
| Visual Basic | Copy Code |
|---|---|
Private Sub viewer_InteractiveScale(ByVal sender As Object, ByVal e As BitmapSourceViewerLineEventArgs) | |
| C# | Copy Code |
|---|---|
private void viewer_InteractiveScale(object sender, BitmapSourceViewerLineEventArgs e) | |
| XAML | Copy Code |
|---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="InteractiveScale 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.Scale.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family