Delen via


WebViewControlNewWindowRequestedEventArgs Class

Definition

Provides data for the NewWindowRequested event.

public ref class WebViewControlNewWindowRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class WebViewControlNewWindowRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class WebViewControlNewWindowRequestedEventArgs
Public NotInheritable Class WebViewControlNewWindowRequestedEventArgs
Inheritance
Object Platform::Object IInspectable WebViewControlNewWindowRequestedEventArgs
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Version history

Windows version SDK version Value added
1809 17763 GetDeferral
1809 17763 NewWindow

Properties

Handled

Gets or sets a value that marks the routed event as handled.

NewWindow

Provides a new WebViewControl as the target for a window.open script call from inside the requesting WebViewControl. The content in target webview is always considered cross-origin to the content in opener webview and vice versa and subject to cross-origin restrictions. The WebViewControl provided in the NewWindow property must be new, running on the same process as the opener webview and cannot have been navigated. Setting the NewWindow property takes priority over the Handled property. If NewWindow is set, then the provided WebViewControl is used. If NewWindow is not set, then Handled is checked to determine behavior for the new window request.

Referrer

Gets the Uniform Resource Identifier (URI) of the content where the navigation was initiated.

Uri

Gets the Uniform Resource Identifier (URI) of the content the IWebViewControl is attempting to navigate to.

Methods

GetDeferral()

Gets a deferral.

Applies to