Expand Minimize

ScrollViewer.ViewChanged event

Applies to Windows and Windows Phone

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

Syntax


public event EventHandler<ScrollViewerViewChangedEventArgs> ViewChanged


<ScrollViewer ViewChanged="eventhandler"/>

Event information

DelegateSystem.EventHandler<ScrollViewerViewChangedEventArgs> [.NET] | Windows.Foundation.EventHandler<ScrollViewerViewChangedEventArgs> [C++]

Remarks

ViewChanging fires before ViewChanged.

In your event handler, use a parameter of type ScrollViewerViewChangedEventArgs for the second parameter of your handler method. ScrollViewerViewChangedEventArgs includes the IsIntermediate property, which reports whether the manipulation that fired the event is completed or still ongoing.

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ScrollViewer
ScrollViewerViewChangedEventArgs
ViewChanging

 

 

Show:
© 2014 Microsoft