CoreWebView2NewWindowRequestedEventArgs Class

Definition

Event args for the NewWindowRequested event.

public class CoreWebView2NewWindowRequestedEventArgs
public class CoreWebView2NewWindowRequestedEventArgs : EventArgs
public class CoreWebView2NewWindowRequestedEventArgs : System.ComponentModel.HandledEventArgs
type CoreWebView2NewWindowRequestedEventArgs = class
type CoreWebView2NewWindowRequestedEventArgs = class
    inherit EventArgs
type CoreWebView2NewWindowRequestedEventArgs = class
    inherit HandledEventArgs
Public Class CoreWebView2NewWindowRequestedEventArgs
Public Class CoreWebView2NewWindowRequestedEventArgs
Inherits EventArgs
Public Class CoreWebView2NewWindowRequestedEventArgs
Inherits HandledEventArgs
Inheritance
CoreWebView2NewWindowRequestedEventArgs
Inheritance
CoreWebView2NewWindowRequestedEventArgs
Inheritance
CoreWebView2NewWindowRequestedEventArgs

Remarks

The event is fired when content inside WebView requested to a open a new window (through window.open() and so on.)

Properties

Handled

Indicates whether the NewWindowRequested event is handled by host.

IsUserInitiated

true when the new window request was initiated through a user gesture such as selecting an anchor tag with target.

Name

Gets the name of the new window.

NewWindow

Gets the new window or sets a WebView as a result of the new window requested.

OriginalSourceFrameInfo

The frame info of the frame where the new window request originated.

Uri

Gets the target uri of the new window request.

WindowFeatures

Gets the window features specified by the window.open() call. These features should be considered for positioning and sizing of new WebView windows.

Methods

GetDeferral()

Gets a CoreWebView2Deferral object and put the event into a deferred state.

Applies to