How can we set the width of a dropdown in VSTO Ribbn XML

625 Views Asked by At

In my VSTO 2013 Add-In for Office 2010, I am using a dropdown in Ribbon XML. The default width of the dropdown is twice the width of the items in the dropdown. How can I reduce the width? I don't see any option in the Ribbon XML tags for the dropdown that would set the appropriate width.

1

There are 1 best solutions below

0
On

Make sure that you none of the items don't have spaces in the beginning or end.

The Ribbon extensibility model doesn't provide any attribute or method for setting the width of the DropDown control. It is set automatically based on the items' width and parent ribbon group content.

You can read more about the Ribbon UI controls in the following series of articles: