다음을 통해 공유


CoreWebView2ContextMenuRequestedEventArgs.Handled Property

Definition

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.

Applies to