ContextMenuHandlerOnBeforeContextMenu Method  | 
Version 106.0.290 
            Called before a context menu is displayed. The model can be cleared to show no context menu or
            modified to show a custom menu.
            
 
    Namespace: 
   CefSharp.Wpf.Handler
    Assembly:
   CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 106.0.290.0 (106.0.290.0)
Syntaxprotected override void OnBeforeContextMenu(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IContextMenuParams parameters,
	IMenuModel model
)
protected:
virtual void OnBeforeContextMenu(
	IWebBrowser^ chromiumWebBrowser, 
	IBrowser^ browser, 
	IFrame^ frame, 
	IContextMenuParams^ parameters, 
	IMenuModel^ model
) override
Parameters
- chromiumWebBrowser
 - Type: CefSharpIWebBrowser
the ChromiumWebBrowser control - browser
 - Type: CefSharpIBrowser
the browser object - frame
 - Type: CefSharpIFrame
The frame the request is coming from - parameters
 - Type: CefSharpIContextMenuParams
provides information about the context menu state - model
 - Type: CefSharpIMenuModel
initially contains the default context menu 
See Also