![]() ![]() One of five types of menu item.Įither a default context menu (right-click menu) belonging to the WebView2 control, or a custom context menu (right-click menu) belonging to your host app. Includes checkbox, command, radio button, separator, and submenu.Ī narrow term. ![]() Remove default or custom menu items from the default context menu.Ī broad term. You can add default menu items and/or custom menu items to a custom context menu.Īdd default menu items to a custom context menu.Īdd custom menu items to a default context menu. For this case, you handle the event and request a deferral. You can use the data provided in the Event arguments of ContextMenuRequested to display a custom context menu with entries of your choice. Your app handles the ContextMenuRequested event. Instead of using the default context menu, your host app can draw its own context menu by using the information that's sent from the WebView2 context menu. For example, you can do any of the following: Use the ContextMenuRequested API to customize the context-menus (right-click menus) of a WebView2 app. The WebView2 control provides a default context menu, and you can create your own context menu when using a WebView2 control. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |