AppWindow.Closing Evento
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Si verifica quando una finestra viene chiusa tramite un invito di sistema.
// 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)
Tipo evento
Commenti
Questo evento non si verifica quando viene chiamato il metodo AppWindow.Destroy .