Visual Basic (Declaration) | |
---|---|
Public Event SourceChanged() As RoutedPropertyChangedEventHandler(Of BitmapSource) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public event RoutedPropertyChangedEventHandler<BitmapSource> SourceChanged() |
C++/CLI | |
---|---|
public: event RoutedPropertyChangedEventHandler<BitmapSource> SourceChanged(); |
XAML Attributes Usage | |
---|---|
<object SourceChanged=EventHandler<ExceptionRoutedEventArgs>/> ... |
Routed Event Information | |
---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate | EventHandler<(Of <(TEventArgs>)>) |
XAML Attributes Usage | |
---|---|
<object SourceChanged=EventHandler<ExceptionRoutedEventArgs>/> ... |
Routed Event Information | |
---|---|
Identifier field | |
Routing strategy | Bubbling |
Delegate | EventHandler<(Of <(TEventArgs>)>) |
This example uses the SourceChanged event to show how the Source has changed.
Visual Basic | Copy Code |
---|---|
Public Sub viewer_SourceChanged(ByVal sender As Object, ByVal e As RoutedPropertyChangedEventArgs(Of BitmapSource)) |
C# | Copy Code |
---|---|
private void viewer_SourceChanged(object sender, RoutedEventArgs e) |
XAML | Copy Code |
---|---|
<Window x:Class="WPFSamples.BitmapSourceViewer" Height="600" Width="800" Title="SourceChanged 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 Source 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