Freigeben über


CoreWebView2.WindowCloseRequested Event

Definition

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.

Applies to