This is a migrated thread and some comments may be shown as answers.

Separator does not show

2 Answers 396 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
PMoransais
Top achievements
Rank 1
PMoransais asked on 07 Mar 2012, 05:26 PM
The Separator element does not show in RadRibbonView

This code is from the sample code shipped with telerik wpf controls
<StackPanel Margin="3">                             
    <telerik:RadRibbonButton SmallImage="Images/16/Cut.png" Text="Cut" Command="Cut"/>  
    
<telerik:Separator />                             
    <telerik:RadRibbonButton SmallImage="Images/16/Copy.png" Text="Copy" Command="Copy" />   
</StackPanel>
The panel is in a Ribbon group, itself in a Ribbon Tab.

The Separator does not show in the Visual Studio Editor (it is selectable but not visisble) and it does not show at run time.
Giving the Separator a width and height makes it visible at design time but not at design time.

Any help will be appreciated

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 12 Mar 2012, 10:45 AM
Hello Philippe,

The Separator control is designed to be used in the RibbonView.ApplicationMenu mostly. It can be used inside a RibbonGroup however placing it in a StackPanel won't work. In this case it is better to use a RadMenuItem element as a separator like so:
<telerik:RadRibbonGroup Header="Group1">
    <StackPanel Margin="3">
        <telerik:RadRibbonButton Content="Button 1" />
        <telerik:RadMenuItem IsSeparator="True" />
        <telerik:RadRibbonButton Content="Button 1" />
    </StackPanel>
</telerik:RadRibbonGroup>

I attached a sample project demonstrating how you can use the RadMenuItem as a separator or the Separator control in a RibbbonGroup. I hope it helps.

All the best,
Tina Stancheva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
PMoransais
Top achievements
Rank 1
answered on 13 Mar 2012, 06:35 PM
Thanks Tina

It works great with the radMenuItem

Philippe
Tags
RibbonView and RibbonWindow
Asked by
PMoransais
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
PMoransais
Top achievements
Rank 1
Share this question
or