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