CoreWebView2Controller.ParentWindow Property

Definition

Gets the parent window provided by the app or sets the parent window that this WebView is using to render content.

public IntPtr ParentWindow { get; set; }
member this.ParentWindow : nativeint with get, set
Public Property ParentWindow As IntPtr

Property Value

IntPtr

nativeint

Remarks

It initially returns the ParentWindow passed into CreateCoreWebView2ControllerAsync(IntPtr) or CreateCoreWebView2ControllerAsync(IntPtr, CoreWebView2ControllerOptions). Setting the property causes the WebView to re-parent the main WebView window to the newly provided window.

Applies to