CoreWebView2Controller Class
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.
This class is the owner of the CoreWebView2 object, and provides support for resizing, showing and hiding, focusing, and other functionality related to windowing and composition.
public class CoreWebView2Controller
type CoreWebView2Controller = class
Public Class CoreWebView2Controller
- Inheritance
-
CoreWebView2Controller
- Derived
The CoreWebView2Controller owns the CoreWebView2, and if all references to the CoreWebView2Controller go away, the WebView will be closed.
Allow |
Gets or sets the WebView allow external drop property. |
Bounds |
Gets or sets the WebView bounds. |
Bounds |
Gets or sets the WebView bounds mode. BoundsMode affects how setting the @CoreWebView2Controller.Bounds and @CoreWebView2Controller.RasterizationScale properties work. Bounds mode can either be in @CoreWebView2BoundsMode$.UseRawPixels mode or @CoreWebView2BoundsMode$.UseRasterizationScale mode. |
Core |
Gets the CoreWebView2 associated with this CoreWebView2Controller. |
Default |
Gets or sets the WebView default background color. |
Is |
Determines whether to show or hide the WebView. |
Parent |
Gets the parent window provided by the app or sets the parent window that this WebView is using to render content. |
Rasterization |
Gets or sets the WebView rasterization scale. |
Should |
Determines whether the WebView will detect monitor scale changes. |
Zoom |
Gets or sets the zoom factor for the WebView. |
Close() |
Closes the WebView and cleans up the underlying browser instance. |
Move |
Moves focus into WebView. |
Notify |
Tells WebView that the main WebView parent (or any ancestor) HWND moved. |
Set |
|
Set |
Updates Bounds and ZoomFactor properties at the same time. |
Accelerator |
AcceleratorKeyPressed is raised when an accelerator key or key combo is pressed or released while the WebView is focused. |
Got |
GotFocus is raised when WebView gets focus. |
Lost |
LostFocus is raised when WebView loses focus. |
Move |
MoveFocusRequested is raised when user tries to tab out of the WebView. |
Rasterization |
RasterizationScaleChanged is raised when the RasterizationScale property changes. |
Zoom |
ZoomFactorChanged is raised when the ZoomFactor property changes. |