Reference Guide
GdPicture14.WPF Namespace / GdViewer Class / PageChanged Event
Example





In This Topic
    PageChanged Event (GdViewer)
    In This Topic
    This event is raised after the currently displayed page of the document loaded in the GdViewer control has been successfully changed.

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

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

    The event handler receives an argument of type GdViewer.PageChangedEventArgs containing data related to this event. The following GdViewer.PageChangedEventArgs 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)
    Example
    How to utilize this event in your GdViewer control.
    'We assume that the GdViewer1 control has been properly integrated
    'and the PageChanged event has been properly added.
                
    'Define the event.
    Sub GdViewer1_PageChanged(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.PageChangedEventArgs)
        MessageBox.Show("The changed page number: " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageChanged")
    End Sub
    //We assume that the GdViewer1 control has been properly integrated
    //and the PageChanged event has been properly added.
                
    //Define the event.
    void GdViewer1_PageChanged(object sender, GdPicture14.WPF.GdViewer.PageChangedEventArgs e)
    {
        MessageBox.Show("The changed page number: " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageChanged");
    }
    See Also