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

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

    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