ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TrayButton Class / ClickCommand Property
Version

ClickCommand Property (TrayButton)
Gets or sets an associated Command that is invoked whenever the corresponding UI Button is clicked.
Syntax
public RelayCommand ClickCommand {get;}

Property Value

A RelayCommand that will be invoked when the UI button is clicked.
Remarks

Only available if ButtonType is TrayButtonType.Button

This property should be set in the overridden constructor or Initialize method.

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also