Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
AppWindow.Closing Event
Definition
- Namespace:
- Microsoft.UI.Windowing
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a window is being closed through a system affordance.
// 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)
Event Type
Remarks
This event does not occur when the AppWindow.Destroy method is called.
Applies to
See also
Feedback
Was this page helpful?
