ScrollViewer.ViewChanging ScrollViewer.ViewChanging ScrollViewer.ViewChanging ScrollViewer.ViewChanging Event


Occurs when manipulations such as scrolling and zooming cause the view to change.

public : event EventHandler<ScrollViewerViewChangingEventArgs> ViewChanging
// Register
event_token ViewChanging(EventHandler<ScrollViewerViewChangingEventArgs> const& handler) const;

// Revoke with event_token
void ViewChanging(event_token const& cookie) const;

// Revoke with event_revoker
ViewChanging_revoker ViewChanging(auto_revoke_t, EventHandler<ScrollViewerViewChangingEventArgs> const& handler) const;
public event EventHandler<ScrollViewerViewChangingEventArgs> ViewChanging
Public Event ViewChanging As EventHandler (Of ScrollViewerViewChangingEventArgs)
<ScrollViewer ViewChanging="eventhandler"/>


ScrollViewerViewChangingEventArgs includes the IsInertial property, which reports whether the manipulation that is firing the event contains an inertial component.

Not every underlying manipulation will necessarily fire this event. The ScrollViewer logic delays and consolidates intermediate events into a single occurrence in some cases.

See also