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)