GdPicture.NET Reference Guide
ZoomChanged Event
Example 





GdPicture14.WPF Namespace > GdViewer Class : ZoomChanged Event
This event is raised after the zoom level has been successfully changed.

The event makes use of bubble routing strategy. Please check the corresponded GdViewer.ZoomChangedEventArgs for more details.

Syntax
'Declaration
 
Public Event ZoomChanged As GdViewer.ZoomChangedHandler
public event GdViewer.ZoomChangedHandler ZoomChanged
public event ZoomChanged: GdViewer.ZoomChangedHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.ZoomChangedHandler* ZoomChanged
public:
event GdViewer.ZoomChangedHandler^ ZoomChanged
Event Data

The event handler receives an argument of type GdViewer.ZoomChangedEventArgs containing data related to this event. The following GdViewer.ZoomChangedEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
Remarks
Just to inform you that this event always occurs when the viewer control has been refreshed due to any changing of the zoom level or the zoom mode.
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated
'and the ZoomChanged event has been properly added.
 
'Define the event.
Sub GdViewer1_ZoomChanged(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.ZoomChangedEventArgs)
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated
//and the ZoomChanged event has been properly added.
 
//Define the event.
void GdViewer1_ZoomChanged(object sender, GdPicture14.WPF.GdViewer.ZoomChangedEventArgs e)
{
    //Do your stuff here.
}
See Also