Add an event handler for the WindowCloseRequested event.
WindowCloseRequested triggers when content inside the WebView
requested to close the window, such as after window.close is run. The
app should close the WebView and related app window if that makes sense
to the app.
Add an event handler for the WindowCloseRequested event. WindowCloseRequested triggers when content inside the WebView requested to close the window, such as after window.close is run. The app should close the WebView and related app window if that makes sense to the app.
\snippet AppWindow.cpp WindowCloseRequested