CoreWebView2Controller.ParentWindow Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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). Setting the property causes the WebView to re-parent the main WebView window to the newly provided window.