Separator does not show

3 posts, 0 answers
  1. PMoransais
    PMoransais avatar
    17 posts
    Member since:
    Mar 2007

    Posted 07 Mar 2012 Link to this post

    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. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 12 Mar 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. PMoransais
    PMoransais avatar
    17 posts
    Member since:
    Mar 2007

    Posted 13 Mar 2012 Link to this post

    Thanks Tina

    It works great with the radMenuItem

    Philippe
Back to Top