ScrollViewer.AnchorRequested ScrollViewer.AnchorRequested ScrollViewer.AnchorRequested 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.

public : event TypedEventHandler<ScrollViewer, AnchorRequestedEventArgs> AnchorRequested
// Register
event_token AnchorRequested(TypedEventHandler<ScrollViewer, AnchorRequestedEventArgs> const& handler) const;

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

// Revoke with event_revoker
AnchorRequested_revoker AnchorRequested(auto_revoke_t, TypedEventHandler<ScrollViewer, AnchorRequestedEventArgs> const& handler) const;
public event TypedEventHandler<ScrollViewer, AnchorRequestedEventArgs> AnchorRequested
Public Event AnchorRequested As TypedEventHandler (Of ScrollViewer, AnchorRequestedEventArgs)

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