separator is not shown when using a usercontrol

Ribbon for WPF Forum

Posted 14 years ago by Arthur Damen
Version: 10.1.0523
Avatar
When i create a usercontrol that must be used inside a ribbonbar,
the separator is not shown??? copiyng the grid part into the ribbonbar itself does show the separator.

<UserControl x:Class="RibbonPageElement"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:res="http://schemas.nds.eu/Resources"
             xmlns:nds="http://schemas.nds.eu/Controls"
             xmlns:commands="clr-namespace:NetDisplaySystems.PADS.Applications.Designer"
             xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon">
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"></ColumnDefinition>
      <ColumnDefinition Width="Auto"></ColumnDefinition>
      <ColumnDefinition Width="Auto"></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <ribbon:Button Grid.Column="0" VariantSize="Large"></ribbon:Button>
    <ribbon:Separator Grid.Column="1" ></ribbon:Separator>
    <ribbon:Button Grid.Column="2" VariantSize="Large"></ribbon:Button>
  </Grid>
</UserControl>

Comments (2)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arthur,

ribbon:Separator looks very different based on its Context and VariantSize properties. In your case, if you add a VariantSize="Large" it should show up for you.


Actipro Software Support

Posted 14 years ago by Arthur Damen
Avatar
Yes it shows it now!

Remarks:
but the height is not the height as when this is inside the group ribbon itself. It now fills it out completely from top until the bottom. I can adjust this with the margin

thanks.
The latest build of this product (v24.1.3) was released 29 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.