Hello.
I'd like to duplicate the "Undo + undo history button" in the ribbon of ArcGIS Pro using a custom sdk addin. I used these two lines in my Config.daml file :
<button refID="esri_core_undoButton" />
<button refID="esri_core_undoHistory" />
However, the result is not the same as the standard button with the little dropdown arrow : there are two distinct buttons instead of two in one.
Do you knwon if it is possible to group those two tools in one, as in the standard quick access tolbar ?
There are different ways of grouping buttons, using tool palettes, button palettes, or button splits.
The Ribbon Control sample is a good reference of how each of these are constructed and how they look on the ribbon.
Try this:
<groups>
<!-- comment this out if you have no controls on the Addin tab to avoid
an empty group-->
<group id="TestEditUndoButton_Group1" caption="Add Undo button" appearsOnAddInTab="true">
<!-- host controls within groups -->
<splitButton refID="esri_core_undoSplitButton" size="small"/>
</group>
</groups>
You can find all undo associated daml ids here: DAML ID Reference ADCore.daml · Esri/arcgis-pro-sdk Wiki (github.com)