Cutomizing ribbon buttons inside group

Feb 17, 2011 at 12:14 PM
Edited Feb 18, 2011 at 10:09 AM

Is there a way to arrange Ribbon buttons inside group

I have 4 buttons with size medium. I want 2 of them in one column and 2 in next column.

But by default 3 comes in first column and last one next column.

 

thanks and regards,

Rasin

 

Feb 21, 2011 at 1:45 AM

You need to use a Fluent:RibbonToolBar.  These let you specify different layouts using Fluent:RibbonToolBarLayoutDefinition, where you can create your own rows of controls instead of relying on the automatic layout which places 3 medium/small controls per column.

A good example of this is the Fluent showcase app's Formatting ribbon group box.  Download the latest source code and take a look at the FluentTest project, TestWindow.xaml.