How to use RibbonSeparator?

Nov 19, 2008 at 1:45 AM
Hi All,
I am facing some issues in using the RibbonSeparator control inside the Ribbon Control (Ribbon Control). To my knowledge the RibbonSeparator visible as vertical when it is placed inside a Ribbon control. But here it is showing as horizontal separator. Is this a bug or did I missed anything?
Nov 19, 2008 at 5:37 PM
Hi Venki5star,

What you are seeing is the correct behavior; RibbonSeparator is a horizontal separator.  If you need vertical separators you will need to write your own style.

Nov 20, 2008 at 10:54 AM
Edited Nov 20, 2008 at 11:05 AM
I read some of documentations in MSDN which mentioned about what I said before. I believe this WPF Ribbon will act same as Office Ribbon control comes with Visual Studio 2008 right? If so, what I said is correct. Reference:
Nov 20, 2008 at 5:58 PM
Hi Venki5star,

The documentation on MSDN relates to Visual Studio Tools for Office, which is different from the WPF Ribbon (we won't have any documentation for this control available on MSDN until .NET 4.0).  However, we have noted that the behavior is different and that this can be confusing, so we will take into consideration when finalizing V1.

Nov 21, 2008 at 2:12 PM
Are you saying that this Ribbon control will be available only on 4.0?? When 4.0 is planned to release?

Nov 21, 2008 at 3:52 PM
The version of Ribbon available now is a CTP only.  We are still finalizing the Ribbon release schedule but V1 of the control will be available sometime next year.  Glad to see you're trying it out early!

Nov 21, 2008 at 6:48 PM
Hi venki5star,

Yes, to clarify, the Ribbon control will be shipped out-of-band (through the Office UI Licensing site) sometime in 2009 but will NOT be part of .NET 4.0.  However, Ribbon documentation will appear on MSDN at the same time as the .NET 4.0 documentation.

Hope that clears it up.  Thanks!
Apr 8, 2009 at 8:30 PM
So I made my own RibbonSeperator to be vertical just to try out making a control for the ribbon and I'm getting an error:
A value of type 'RibbonVerticalSeparator' cannot be added to a collection or dictionary of type 'Collection`1'.

It still runs and shows up, but I'm getting that error.

Anyone see what I'm doing wrong?

Here is what I have:


<StackPanel x:Class="bleh.RibbonVerticalSeparator"
   <Rectangle Fill="#ffeaecee"
              Width="1" />
   <Rectangle Fill="#ffb4b6b7"
              Width="1" />


using Microsoft.Windows.Controls.Ribbon;
namespace bleh
   public partial class RibbonVerticalSeparator : IRibbonControl
      public RibbonVerticalSeparator()


<r:RibbonGroup Command="{StaticResource ViewBlehCommand}">
<r:RibbonToggleButton Command="{StaticResource ViewBleh1Command}" />
<bleh:RibbonVerticalSeparator />
<r:RibbonToggleButton Command="{StaticResource ViewBleh2Command}" />
Apr 17, 2009 at 6:30 PM
Instead of using stack panel, use a RibbonControlGroup

            Height = 55;
            Margin = new Thickness(5, 5, 5, 5);
            Width = 2;
            MaxWidth = 2;
            MinHeight = 55;