ArcGIS Pro 2.7 API Reference Guide
OnContextMenu Method (Item)

ArcGIS.Desktop.Core Namespace > Item Class : OnContextMenu Method
Called before the context menu for the Item is opened.
Syntax
protected internal virtual void OnContextMenu()
Protected Friend Overridable Sub OnContextMenu() 
Remarks
This is a temporary fix for 2.7. Do not use. Slow loads on context menu are prohibited.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Item Class
Item Members