Freigeben über


CoreWebView2CompositionController Class

Definition

This class is an extension of the CoreWebView2Controller class to support visual hosting.

public class CoreWebView2CompositionController
public class CoreWebView2CompositionController : Microsoft.Web.WebView2.Core.CoreWebView2Controller
type CoreWebView2CompositionController = class
type CoreWebView2CompositionController = class
    inherit CoreWebView2Controller
Public Class CoreWebView2CompositionController
Public Class CoreWebView2CompositionController
Inherits CoreWebView2Controller
Inheritance
CoreWebView2CompositionController
Inheritance
CoreWebView2CompositionController

Properties

AllowExternalDrop

Gets or sets the WebView allow external drop property.

(Inherited from CoreWebView2Controller)
Bounds

Gets or sets the WebView bounds.

(Inherited from CoreWebView2Controller)
BoundsMode

Gets or sets the WebView bounds mode.

(Inherited from CoreWebView2Controller)
CoreWebView2

Gets the CoreWebView2 associated with this CoreWebView2Controller.

(Inherited from CoreWebView2Controller)
Cursor

Gets the current cursor that WebView thinks it should be.

DefaultBackgroundColor

Gets or sets the WebView default background color.

(Inherited from CoreWebView2Controller)
IsVisible

Determines whether to show or hide the WebView.

(Inherited from CoreWebView2Controller)
ParentWindow

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

(Inherited from CoreWebView2Controller)
RasterizationScale

Gets or sets the WebView rasterization scale.

(Inherited from CoreWebView2Controller)
RootVisualTarget

Gets or sets the root visual in the hosting app's visual tree.

ShouldDetectMonitorScaleChanges

Determines whether the WebView will detect monitor scale changes.

(Inherited from CoreWebView2Controller)
SystemCursorId

Gets the current system cursor ID reported by the underlying rendering engine for WebView.

UIAProvider

Gets the UI Automation Provider for the WebView.

ZoomFactor

Gets or sets the zoom factor for the WebView.

(Inherited from CoreWebView2Controller)

Methods

Close()

Closes the WebView and cleans up the underlying browser instance.

(Inherited from CoreWebView2Controller)
CreateCoreWebView2PointerInfoFromPointerId(UInt32, IntPtr, Matrix4x4)

Converts a PointerId received from the system into a CoreWebView2PointerInfo.

DragLeave()

Call this method to inform the CoreWebView2CompositionController that a drag operation has left the WebView.

DragOver(UInt32, Point)

The drag operation is over the WebView.

GetNonClientRegionAtPoint(Point)

Call this method to perform hit-testing inside of your message loop when the message is WM_NCHITTEST.

MoveFocus(CoreWebView2MoveFocusReason)

Moves focus into WebView.

(Inherited from CoreWebView2Controller)
NotifyParentWindowPositionChanged()

Tells WebView that the main WebView parent (or any ancestor) HWND moved.

(Inherited from CoreWebView2Controller)
QueryNonClientRegion(CoreWebView2NonClientRegionKind)

This method retrieves the non-client regions on the page which corresponds to a given kind CoreWebView2NonClientRegionKind.

SendMouseInput(CoreWebView2MouseEventKind, CoreWebView2MouseEventVirtualKeys, UInt32, Point)

Sends mouse input to the WebView.

SendPointerInput(CoreWebView2PointerEventKind, CoreWebView2PointerInfo)

Sends pen or pointer input to the WebView.

SetBoundsAndZoomFactor(Rect, Double) (Inherited from CoreWebView2Controller)
SetBoundsAndZoomFactor(Rectangle, Double)

Updates Bounds and ZoomFactor properties at the same time.

(Inherited from CoreWebView2Controller)

Events

AcceleratorKeyPressed

AcceleratorKeyPressed is raised when an accelerator key or key combo is pressed or released while the WebView is focused.

(Inherited from CoreWebView2Controller)
CursorChanged

The event is raised when WebView thinks the cursor should be changed.

GotFocus

GotFocus is raised when WebView gets focus.

(Inherited from CoreWebView2Controller)
LostFocus

LostFocus is raised when WebView loses focus.

(Inherited from CoreWebView2Controller)
MoveFocusRequested

MoveFocusRequested is raised when user tries to tab out of the WebView.

(Inherited from CoreWebView2Controller)
NonClientRegionChanged

This event is raised when elements on the page with "app-region" CSS property values corresponding to non-client regions change. Use the RegionKind to see the kind of non-client region that changed.

RasterizationScaleChanged

RasterizationScaleChanged is raised when the RasterizationScale property changes.

(Inherited from CoreWebView2Controller)
ZoomFactorChanged

ZoomFactorChanged is raised when the ZoomFactor property changes.

(Inherited from CoreWebView2Controller)

Applies to