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

In This Topic
    SmallImage Property (TrayButton)
    In This Topic
    Gets or sets the SmallImage property of this TrayButton.
    Syntax
    public object SmallImage {get;}
    Public ReadOnly Property SmallImage As Object
    Remarks

    "smallImage" is a required property within the DAML definition of a TrayButton, and is normally expected to be an icon URI.

    SmallImage is used to display an icon for the TrayButton.

    After a TrayButton has been constructed, SmallImage may optionally be changed to another icon URI or ImageSource, Such changes should be made within Initialize or at a later point, once the DAML properties have been loaded.

    If you've changed SmallImage in your code, you can restore the DAML icon by setting it to null.

    A PropertyChangedEvent will be signaled when SmallImage is changed, but not when the initial DAML setting occurs.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also