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





In This Topic
    Scroll Event (GdViewer)
    In This Topic
    This event is raised when the user scrolls through the GdViewer control area using the mouse move or when they scroll using the vertical or the horizontal scrollbars directly.

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

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

    The event handler receives an argument of type GdViewer.ScrollEventArgs containing data related to this event. The following GdViewer.ScrollEventArgs 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 Scroll event has been properly added.
                
    'Define the event.
    Sub GdViewer1_Scroll(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.ScrollEventArgs)
        'Do your stuff here.
    End Sub
    //We assume that the GdViewer1 control has been properly integrated
    //and the Scroll event has been properly added.
                
    //Define the event.
    void GdViewer1_Scroll(object sender, GdPicture14.WPF.GdViewer.ScrollEventArgs e)
    {
        //Do your stuff here.
    }
    See Also