แก้ไข

แชร์ผ่าน


ScrollViewer.OnScrollChanged(ScrollChangedEventArgs) Method

Definition

Called when a change in scrolling state is detected, such as a change in scroll position, extent, or viewport size.

protected:
 virtual void OnScrollChanged(System::Windows::Controls::ScrollChangedEventArgs ^ e);
protected virtual void OnScrollChanged (System.Windows.Controls.ScrollChangedEventArgs e);
abstract member OnScrollChanged : System.Windows.Controls.ScrollChangedEventArgs -> unit
override this.OnScrollChanged : System.Windows.Controls.ScrollChangedEventArgs -> unit
Protected Overridable Sub OnScrollChanged (e As ScrollChangedEventArgs)

Parameters

e
ScrollChangedEventArgs

The ScrollChangedEventArgs that contain information about the change in the scrolling state.

Remarks

If you override this method, call base.OnScrollChanged(ScrollChangedEventArgs) to ensure that this event is raised.

Applies to