Share via


AppWindow.Closing Evento

Definição

Ocorre quando uma janela está sendo fechada por meio de uma funcionalidade do 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 de evento

Comentários

Esse evento não ocorre quando o método AppWindow.Destroy é chamado.

Aplica-se a

Confira também