ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / Pane Class / OnContextMenu Method
The default ContextMenu for the Pane.

OnContextMenu Method
Provides the Pane with the option to customize its ContextMenu before it is displayed.
Syntax
protected internal virtual void OnContextMenu( 
   ContextMenu contextMenu
)

Parameters

contextMenu
The default ContextMenu for the Pane.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also