Visual Basic (Declaration) | |
---|---|
Public Event SizeModeChanged() As RoutedPropertyChangedEventHandler(Of PaintSizeMode) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public event RoutedPropertyChangedEventHandler<PaintSizeMode> SizeModeChanged() |
C++/CLI | |
---|---|
public: event RoutedPropertyChangedEventHandler<PaintSizeMode> SizeModeChanged(); |
XAML Attributes Usage | |
---|---|
<object SizeModeChanged=EventHandler<ExceptionRoutedEventArgs>/> ... |
Routed Event Information | |
---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate | EventHandler<(Of <(TEventArgs>)>) |
XAML Attributes Usage | |
---|---|
<object SizeModeChanged=EventHandler<ExceptionRoutedEventArgs>/> ... |
Routed Event Information | |
---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate | EventHandler<(Of <(TEventArgs>)>) |
This example uses the SizeModeChanged event to show how the SizeMode has changed.
Visual Basic | Copy Code |
---|---|
Private Sub viewer_SizeModeChanged(ByVal sender As Object, ByVal e As RoutedPropertyChangedEventArgs(Of PaintSizeMode)) |
C# | Copy Code |
---|---|
private void viewer_SizeModeChanged(object sender, RoutedEventArgs e) |
XAML | Copy Code |
---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="SizeModeChanged 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"> |
This event is raised if the SizeMode property is changed by either a programmatic modification or user interaction.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family