ArcGIS Pro 2.8 API Reference Guide
ContextMenuID Property (MapTool)

ArcGIS.Desktop.Mapping Namespace > MapTool Class : ContextMenuID Property
Gets or sets the DAML ID of the context menu for the tool.
Syntax
protected string ContextMenuID {get; set;}
Protected Property ContextMenuID As String
Remarks
By default this will be null and will display the default context menu for the tool. To display no context menu set the value to an empty string or handle the OnToolMouseDown event for the right mouse button.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapTool Class
MapTool Members