CoreWebView2ControllerOptions.AllowHostInputProcessing 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.
AllowHostInputProcessing
property is to enable/disable input passing through
the app before being delivered to the WebView2. This property is only applicable
to controllers created with CoreWebView2Environment.CreateCoreWebView2ControllerAsync
and not
composition controllers created with CoreWebView2Environment.CreateCoreWebView2CompositionControllerAsync
.
By default the value is FALSE
.
Setting this property has no effect when using visual hosting.
\snippet AppWindow.cpp AllowHostInputProcessing
public bool AllowHostInputProcessing { get; set; }
member this.AllowHostInputProcessing : bool with get, set
Public Property AllowHostInputProcessing As Boolean
Property Value
Remarks
The property is to enable/disable input passing through the app before being delivered to the WebView2. Setting this property to TRUE
allows default .NET event handling API of WebView2 control to work, such as PreProcessMessage and ProcessCmdKey. This property is only applicable to controllers created with CoreWebView2Environment.CreateCoreWebView2ControllerAsync
and not composition controllers created with CoreWebView2Environment.CreateCoreWebView2CompositionControllerAsync
. By default the value is FALSE
.