次の方法で共有


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. After the first window.close() call, this event may not fire for any immediate back to back window.close() calls.

Applies to