共用方式為


CoreWebView2NewWindowRequestedEventArgs.Handled Property

Definition

Indicates whether the NewWindowRequested event is handled by host.

public bool Handled { get; set; }
member this.Handled : bool with get, set
Public Property Handled As Boolean

Property Value

Remarks

If this is false and no NewWindow is set, the WebView opens a popup window and returns the opened WindowProxy to the opener script. Note that in this case, there is no avenue to control the popup window from the app. If set to true and no NewWindow is set for window.open(), the opened proxy is for a dummy window object, but this window does not load and is immediately closed. The default value is false.

Applies to