ArcGIS Pro 2.9 API Reference Guide
CreateContextMenu(String,String,Func<Object>) Method

ArcGIS.Desktop.Framework Namespace > FrameworkApplication Class > CreateContextMenu Method : CreateContextMenu(String,String,Func<Object>) Method
The DAML identifier of the minitoolbar to optionally show with the menu.
The DataContext for the menu.
Creates a WPF context menu.
Syntax
public static ContextMenu CreateContextMenu( 
   string menuID,
   string toolbarID,
   Func<object> property
)
Public Overloads Shared Function CreateContextMenu( _
   ByVal menuID As String, _
   ByVal toolbarID As String, _
   Optional ByVal property As Func(Of Object) _
) As ContextMenu

Parameters

menuID
The DAML menu identifier.
toolbarID
The DAML identifier of the minitoolbar to optionally show with the menu.
property
The DataContext for the menu.

Return Value

A ContextMenu.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

FrameworkApplication Class
FrameworkApplication Members
Overload List