Partager via


ScrollView.AnchorRequested Événement

Définition

Se produit lorsque le est sur le ScrollView point de sélectionner un élément d’ancre.

// Register
event_token AnchorRequested(TypedEventHandler<ScrollView, ScrollingAnchorRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ScrollView::AnchorRequested_revoker AnchorRequested(auto_revoke_t, TypedEventHandler<ScrollView, ScrollingAnchorRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<ScrollView,ScrollingAnchorRequestedEventArgs> AnchorRequested;
function onAnchorRequested(eventArgs) { /* Your code */ }
scrollView.addEventListener("anchorrequested", onAnchorRequested);
scrollView.removeEventListener("anchorrequested", onAnchorRequested);
- or -
scrollView.onanchorrequested = onAnchorRequested;
Public Custom Event AnchorRequested As TypedEventHandler(Of ScrollView, ScrollingAnchorRequestedEventArgs) 

Type d'événement

S’applique à