CoreWebView2ContextMenuRequestedEventArgs.Handled 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 or sets whether the ContextMenuRequested event is handled by host after the event handler completes or after the deferral is completed if there is a taken Deferral.
public bool Handled { get; set; }
member this.Handled : bool with get, set
Public Property Handled As Boolean
Property Value
Remarks
If Handled is set to true
then WebView2 will not display a context menu and will instead use the SelectedCommandId property to indicate which, if any, context menu item to invoke. If after the event handler or deferral completes, Handled is set to false
then WebView will display a context menu based on the contents of the MenuItems property. The default value is false
.