AppWindow.Destroying 事件

定义

在销毁窗口时发生。

// Register
event_token Destroying(TypedEventHandler<AppWindow, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
AppWindow::Destroying_revoker Destroying(auto_revoke_t, TypedEventHandler<AppWindow, IInspectable const&> const& handler) const;
public event TypedEventHandler<AppWindow,object> Destroying;
function onDestroying(eventArgs) { /* Your code */ }
appWindow.addEventListener("destroying", onDestroying);
appWindow.removeEventListener("destroying", onDestroying);
- or -
appWindow.ondestroying = onDestroying;
Public Custom Event Destroying As TypedEventHandler(Of AppWindow, Object) 

事件类型

注解

从屏幕中删除窗口后发送事件。 使用此事件清理与窗口关联的资源。

适用于

另请参阅