Search code examples
outlook-addinribbonx

Dynamic Ribbon Button Size With XML Ribbon


I have group of buttons I have added to the mail main group. Is there a setting in the XML to allow these buttons to re-size themselves based on the size of Outlook like the built in Outlook buttons? I only see the option of large and normal button sizes, and if I remove the size tag it will show up as normal. Is there an option for this? Couldn't find the tag reference.


Solution

  • Auto-scaling enables ribbon groups to adapt their layout to best match the horizontal window size. The auto-scaling feature was added to Office 2010 and onwards. You can enable auto-scaling by setting the autoScale attribute of the <group> tag to True as follows:

    autoScale="true"
    

    Note, auto-scaling is set on a per-group basis. See Ribbon Extensibility in Office 2010: Tab Activation and Auto-Scaling for more information.

    Read more about the Fluent UI in the following series of articles: