Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.03 KB

scrollviewer_anchorrequested.md

File metadata and controls

27 lines (16 loc) · 1.03 KB
-api-id -api-type ms.custom
E:Windows.UI.Xaml.Controls.ScrollViewer.AnchorRequested
winrt event
RS5

Windows.UI.Xaml.Controls.ScrollViewer.AnchorRequested

-description

Occurs when an anchor is requested at the beginning of the Arrange pass. Handle this event to override the ScrollViewer's default logic to select an anchor element as part of scroll anchoring.

-remarks

Explicitly set the Anchor property of the AnchorRequestedEventArgs to a UIElement within the ScrollViewer's subtree to override the default policy of choosing an anchor element. The AnchorCandidates property provides the list of candidates currently registered with the ScrollViewer.

-see-also

IScrollAnchorProvider

-examples