how to control RibbonControlGroup layout within RibbonTabGroup

Jan 14, 2009 at 9:30 AM
By default, the height of RibbonControlGroup is 1/3 of RibbonTabGroup height. Is that possible to make the height of RibbonControlGroup be 1/2 of RibbonTabGroup? Just like Font tabgroup within Word 2007.

Jan 14, 2009 at 7:34 PM

Hi Erich27,

I believe that the RibbonControlGroups in Word's Font group are actually the same height (1/3 of the group height) as other standard small-sized controls, but they're laid out differently.  If you resize Word's window to be narrower so that the Font group collapses, you'll see that the control groups stay the same height, but there are now 3 rows.  I believe that this specific height is required by the Office Fluent UI Licensing Guidelines.

If you want to achieve the same sort of layout as in the Font group, you'll need to write a custom layout panel to handle that and replace the standard RibbonWrapPanel with it.  Your panel should also contain logic to have similar resizing behavior to Word (where the control groups jump around as the groups get smaller).