Share via


AppWindow.Closing イベント

定義

システム アフォーダンスを介してウィンドウを閉じるときに発生します。

// Register
event_token Closing(TypedEventHandler<AppWindow, AppWindowClosingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AppWindow::Closing_revoker Closing(auto_revoke_t, TypedEventHandler<AppWindow, AppWindowClosingEventArgs const&> const& handler) const;
public event TypedEventHandler<AppWindow,AppWindowClosingEventArgs> Closing;
function onClosing(eventArgs) { /* Your code */ }
appWindow.addEventListener("closing", onClosing);
appWindow.removeEventListener("closing", onClosing);
- or -
appWindow.onclosing = onClosing;
Public Custom Event Closing As TypedEventHandler(Of AppWindow, AppWindowClosingEventArgs) 

イベントの種類

注釈

このイベントは、 AppWindow.Destroy メソッドが呼び出されたときに発生しません。

適用対象

こちらもご覧ください