ICoreWebView2_11.add_ContextMenuRequested

Add an event handler for the ContextMenuRequested event. ContextMenuRequested event is raised when a context menu is requested by the user and the content inside WebView hasn't disabled context menus. The host has the option to create their own context menu with the information provided in the event or can add items to or remove items from WebView context menu. If the host doesn't handle the event, WebView will display the default context menu.

\snippet SettingsComponent.cpp EnableCustomMenu

interface ICoreWebView2_11
HRESULT
add_ContextMenuRequested

Meta