Visual Basic (Declaration) | |
---|---|
Public Event ImageSizeChanged As SizeChangedEventHandler |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ImageViewer Dim handler As SizeChangedEventHandler AddHandler instance.ImageSizeChanged, handler |
C# | |
---|---|
public event SizeChangedEventHandler ImageSizeChanged |
C++/CLI | |
---|---|
public: event SizeChangedEventHandler^ ImageSizeChanged |
The event handler receives an argument of type SizeChangedEventArgs containing data related to this event. The following SizeChangedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Handled (Inherited from System.Windows.RoutedEventArgs) | |
HeightChanged | |
NewSize | |
OriginalSource (Inherited from System.Windows.RoutedEventArgs) | |
PreviousSize | |
RoutedEvent (Inherited from System.Windows.RoutedEventArgs) | |
Source (Inherited from System.Windows.RoutedEventArgs) | |
WidthChanged |
This event is raised if any action through user interaction or programmatically that cause the control size to change, for example, through the resizing of the owner window or container or if the image inside th eSource property changes.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family