ScrollView.AnchorRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 即将选择定位点元素时 ScrollView
发生。
// 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)