ContextMenuHandlerRunContextMenu Method |
Version 130.1.90
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.
Namespace: CefSharp.Wpf.HandlerAssembly: CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax protected override bool RunContextMenu(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IContextMenuParams parameters,
IMenuModel model,
IRunContextMenuCallback callback
)
protected:
virtual bool RunContextMenu(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IContextMenuParams^ parameters,
IMenuModel^ model,
IRunContextMenuCallback^ callback
) override
Parameters
- chromiumWebBrowser IWebBrowser
- the ChromiumWebBrowser control
- browser IBrowser
- the browser object
- frame IFrame
- The frame the request is coming from
- parameters IContextMenuParams
- provides information about the context menu state
- model IMenuModel
- contains the context menu model resulting from OnBeforeContextMenu
- callback IRunContextMenuCallback
- the callback to execute for custom display
Return Value
BooleanFor custom display return true and execute callback either synchronously or asynchronously with the selected command ID.
See Also