Click or drag to resize

ContextMenuHandler Class

Version 102.0.100
Implementation of IContextMenuHandler that uses a ContextMenu to display the context menu.
Inheritance Hierarchy

Namespace:  CefSharp.Wpf.Handler
Assembly:  CefSharp.Wpf (in CefSharp.Wpf.dll) Version: (
public class ContextMenuHandler : ContextMenuHandler

The ContextMenuHandler type exposes the following members.

Public methodContextMenuHandler
Initializes a new instance of the ContextMenuHandler class
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExecuteCommand
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnBeforeContextMenu
Called before a context menu is displayed. The model can be cleared to show no context menu or modified to show a custom menu.
(Overrides ContextMenuHandlerOnBeforeContextMenu(IWebBrowser, IBrowser, IFrame, IContextMenuParams, IMenuModel).)
Protected methodOnContextMenuCommand
Called to execute a command selected from the context menu. See cef_menu_id_t for the command ids that have default implementations. All user-defined command ids should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST.
(Inherited from ContextMenuHandler.)
Protected methodOnContextMenuDismissed
Called when the context menu is dismissed irregardless of whether the menu was empty or a command was selected.
(Overrides ContextMenuHandlerOnContextMenuDismissed(IWebBrowser, IBrowser, IFrame).)
Protected methodRunContextMenu
Called to allow custom display of the context menu. For custom display return true and execute callback either synchronously or asynchronously with the selected command Id. For default display return false. Do not keep references to parameters or model outside of this callback.
(Overrides ContextMenuHandlerRunContextMenu(IWebBrowser, IBrowser, IFrame, IContextMenuParams, IMenuModel, IRunContextMenuCallback).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also