CoreWebView2.WindowCloseRequested Event
Definition
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.
WindowCloseRequested is raised when content inside the WebView requested to close the window, such as after window.close()
is run.
public event EventHandler<object> WindowCloseRequested;
member this.WindowCloseRequested : EventHandler<obj>
Public Custom Event WindowCloseRequested As EventHandler(Of Object)
Event Type
Remarks
The app should close the WebView and related app window if that makes sense to the app. After the first window.close() call, this event may not fire for any immediate back to back window.close() calls.