AppWindow.Closed Event


Occurs when the app window has been closed.

// Register
event_token Closed(TypedEventHandler<AppWindow, AppWindowClosedEventArgs const &> const& handler) const;

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

// Revoke with event_revoker
Closed_revoker Closed(auto_revoke_t, TypedEventHandler<AppWindow, AppWindowClosedEventArgs const &> const& handler) const;
public event TypedEventHandler<AppWindow,AppWindowClosedEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
appWindow.addEventListener("closed", onClosed);
appWindow.removeEventListener("closed", onClosed);
- or -
appWindow.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of AppWindow, AppWindowClosedEventArgs) 

Event Type



This event is preceded by a CloseRequested event.

Applies to

See also