ScrollViewer.AnchorRequested Event

Definition

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.

C#
public event TypedEventHandler<ScrollViewer,AnchorRequestedEventArgs> AnchorRequested;

Event Type

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.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also