-api-id | -api-type | ms.custom |
---|---|---|
E:Windows.UI.Xaml.Controls.ScrollViewer.AnchorRequested |
winrt event |
RS5 |
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.
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.