共用方式為


RefreshVisualizer.RefreshRequested 事件

定義

發生于已起始內容的更新時。

適用于 UWP的對WinUI 2 APIMicrosoft.UI.Xaml.Controls.RefreshVisualizer.RefreshRequested (in the Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

// Register
event_token RefreshRequested(TypedEventHandler<RefreshVisualizer, RefreshRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
RefreshVisualizer::RefreshRequested_revoker RefreshRequested(auto_revoke_t, TypedEventHandler<RefreshVisualizer, RefreshRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<RefreshVisualizer,RefreshRequestedEventArgs> RefreshRequested;
function onRefreshRequested(eventArgs) { /* Your code */ }
refreshVisualizer.addEventListener("refreshrequested", onRefreshRequested);
refreshVisualizer.removeEventListener("refreshrequested", onRefreshRequested);
- or -
refreshVisualizer.onrefreshrequested = onRefreshRequested;
Public Custom Event RefreshRequested As TypedEventHandler(Of RefreshVisualizer, RefreshRequestedEventArgs) 

事件類型

適用於