Select to view content in your preferred language

Create a buttonPalette in the ribbon that does NOT adopt the icon of the first button within it

289
2
Jump to solution
02-19-2025 08:54 AM
MichaelAustinESGG
Emerging Contributor
 
Hello, I'm trying to figure out how to setup the Config.daml to create a buttonPalette in the ribbon that has a specific icon (instead of it simply adopting the icon of the first button within the palette).

I presume this is possible because the ribbon's built-in ESRI tools do this in several places, for example the buttons for Bookmarks has a different icon than it's first item within it.

I attempted to set a smallImage and largeImage value for the buttonPalette tag with something like this:

<palettes>
    <buttonPalette id="SettingsPalette" caption="Settings" dropDown="true" menuStyle="true" showItemCaption="true" keyTip="PS" smallImage="CogWheel16" largeImage="CogWheel32" >
        <button refID="SettingsForTool1Button" />
        <button refID="SettingsForTool2Button" />
    </buttonPalette>
</palettes>

But it didn't work.  The icon for SettingsForTool1Button always becomes the icon for SettingsPalette.
 
If anyone has an idea of the correct way to do this, I'd love to know what it is.
0 Kudos
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

@MichaelAustinESGG 

The Bookmark control is a Gallery control. Pro's "Ready To Use Tools" control on the Analysis tab is also a gallery.

The Pro SDK Item template for Gallery will get you started with this.

UmaHarano_0-1739986859614.png

 

View solution in original post

2 Replies
UmaHarano
Esri Regular Contributor

@MichaelAustinESGG 

The Bookmark control is a Gallery control. Pro's "Ready To Use Tools" control on the Analysis tab is also a gallery.

The Pro SDK Item template for Gallery will get you started with this.

UmaHarano_0-1739986859614.png

 

MichaelAustinESGG
Emerging Contributor

Thanks!

0 Kudos