RefreshVisualizer.RefreshStateChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于視覺化檢視的狀態變更時。
適用于 UWP 的對等 WinUI 2 API:Microsoft.UI.Xaml.Controls.RefreshVisualizer.RefreshStateChanged (Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。
// Register
event_token RefreshStateChanged(TypedEventHandler<RefreshVisualizer, RefreshStateChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void RefreshStateChanged(event_token const* cookie) const;
// Revoke with event_revoker
RefreshVisualizer::RefreshStateChanged_revoker RefreshStateChanged(auto_revoke_t, TypedEventHandler<RefreshVisualizer, RefreshStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<RefreshVisualizer,RefreshStateChangedEventArgs> RefreshStateChanged;
function onRefreshStateChanged(eventArgs) { /* Your code */ }
refreshVisualizer.addEventListener("refreshstatechanged", onRefreshStateChanged);
refreshVisualizer.removeEventListener("refreshstatechanged", onRefreshStateChanged);
- or -
refreshVisualizer.onrefreshstatechanged = onRefreshStateChanged;
Public Custom Event RefreshStateChanged As TypedEventHandler(Of RefreshVisualizer, RefreshStateChangedEventArgs)