How to add Elements to a RibbonSplitButton?

Jan 5, 2009 at 10:04 AM
Hello,

I'm looking for a method to add Elements to a RibbonSplitButton.
Hopefuly someone can tell me how to do it.

Regards
Carsten
Jan 5, 2009 at 5:49 PM
Hi Carsten,

You can just add objects to the Items property.

 

 

            <ribbon:RibbonSplitButton xmlns:sys="clr-namespace:System;assembly=mscorlib"  Command="{StaticResource HighlightCommand}">
              <ribbon:RibbonSplitButton.Items>
                <ribbon:RibbonButton Command="{StaticResource GrowFontCommand}" />
                <ribbon:RibbonButton Command="{StaticResource ShrinkFontCommand}" />
              </ribbon:RibbonSplitButton.Items>
            </ribbon:RibbonSplitButton>

Carole

Jan 6, 2009 at 12:04 PM
Hello Carole,

thank you for the advice. Thats exactly what I was looking for.

Regards
Carsten