Edit

Share via


WebViewHost Class

Definition

The WebViewHost class hosts a WebView inside of a WPF tree

public abstract class WebViewHost : System.Windows.Interop.HwndHost
type WebViewHost = class
    inherit HwndHost
Public MustInherit Class WebViewHost
Inherits HwndHost
Inheritance
WebViewHost
Derived

Remarks

Requires unmanaged code permissions

Constructors

WebViewHost()

Initializes a new instance of the WebViewHost class.

Properties

ChildWindow

Gets the child window.

DeviceDpi
Obsolete.

Gets the current DPI for this control

DpiScale

Gets the DPI information for which the Visual is measured and rendered.

IsScalingRequired
Obsolete.

Gets a value indicating whether scaling is required for the current DPI.

ParentHandle

Gets the parent handle.

Methods

BuildWindowCore(HandleRef)

When overridden in a derived class, creates the window to be hosted.

Close()

Closes the WebViewHost.

DestroyWindowCore(HandleRef)

Destroys the hosted window.

Dispose(Boolean)

Immediately frees any system resources that the WebViewHost might hold.

Initialize()

Initializes this instance.

TranslateAcceleratorCore(MSG, ModifierKeys)

Processes keyboard input at the keydown message level.

UpdateBounds(Rect)

Updates the location and size of WebViewHost.

UpdateSize(Size)

Updates the size of the WebViewHost using the current visual offset for location.

WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean)

When overridden in a derived class, accesses the window process (handle) of the hosted child window.

Applies to