共用方式為


ScrollView.ViewChanged 事件

定義

發生於卷動和縮放等操作導致檢視變更時。

// Register
event_token ViewChanged(TypedEventHandler<ScrollView, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
ScrollView::ViewChanged_revoker ViewChanged(auto_revoke_t, TypedEventHandler<ScrollView, IInspectable const&> const& handler) const;
public event TypedEventHandler<ScrollView,object> ViewChanged;
function onViewChanged(eventArgs) { /* Your code */ }
scrollView.addEventListener("viewchanged", onViewChanged);
scrollView.removeEventListener("viewchanged", onViewChanged);
- or -
scrollView.onviewchanged = onViewChanged;
Public Custom Event ViewChanged As TypedEventHandler(Of ScrollView, Object) 

事件類型

適用於