ScrollView.BringingIntoView 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生在帶入檢視要求參與的開頭。 允許自定義該參與。
// Register
event_token BringingIntoView(TypedEventHandler<ScrollView, ScrollingBringingIntoViewEventArgs const&> const& handler) const;
// Revoke with event_token
void BringingIntoView(event_token const* cookie) const;
// Revoke with event_revoker
ScrollView::BringingIntoView_revoker BringingIntoView(auto_revoke_t, TypedEventHandler<ScrollView, ScrollingBringingIntoViewEventArgs const&> const& handler) const;
public event TypedEventHandler<ScrollView,ScrollingBringingIntoViewEventArgs> BringingIntoView;
function onBringingIntoView(eventArgs) { /* Your code */ }
scrollView.addEventListener("bringingintoview", onBringingIntoView);
scrollView.removeEventListener("bringingintoview", onBringingIntoView);
- or -
scrollView.onbringingintoview = onBringingIntoView;
Public Custom Event BringingIntoView As TypedEventHandler(Of ScrollView, ScrollingBringingIntoViewEventArgs)