VirtualizingStackPanel.OnViewportOffsetChanged(Vector, Vector) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the offset of the viewport changes as a user scrolls through content.
protected:
virtual void OnViewportOffsetChanged(System::Windows::Vector oldViewportOffset, System::Windows::Vector newViewportOffset);
protected virtual void OnViewportOffsetChanged (System.Windows.Vector oldViewportOffset, System.Windows.Vector newViewportOffset);
abstract member OnViewportOffsetChanged : System.Windows.Vector * System.Windows.Vector -> unit
override this.OnViewportOffsetChanged : System.Windows.Vector * System.Windows.Vector -> unit
Protected Overridable Sub OnViewportOffsetChanged (oldViewportOffset As Vector, newViewportOffset As Vector)
Parameters
- oldViewportOffset
- Vector
The old offset of the viewport.
- newViewportOffset
- Vector
The new offset of the viewport.
Remarks
Use this method, in a derived class, to detect and respond to changes in the viewport location.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.