Ribbon in Grid bug ?

Ribbon for WPF Forum

Posted 12 years ago by Dieter De Preester
Avatar
Hello

when i place a ribbon in a grid, with row 0 it is visible in blend en VS.NET but NOT at runtime. When change the row to nr 1 it is also visible at runtime. The xaml looks like this:

<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Bormet.Multisys.Frontend.MainScreen"
Title="MainScreen" Height="583" Width="795" WindowState="Maximized" xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="143"/>
<RowDefinition/>
</Grid.RowDefinitions>
<ribbon:Ribbon HorizontalAlignment="Left" Width="Auto" Grid.Row="0"/>
</Grid>
</Window>

kind regards
Dieter

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Dieter,

We have a troubleshooting topic in the docs on this and also we have a blog post on it:
http://blog.actiprosoftware.com/post/Where-did-my-Ribbon-go--Ribbon-hides-at-run-time-after-designing-with-VS-2008.aspx

Basically it is the Ribbon collapsing feature kicking in since you gave an explicit height on the row containing the Ribbon that is lower than the threshold size for collapsing.

Just change Height="143" to Height="Auto" and your problem should be solved.

Sometimes when you click around in VS, you may accidentally move a grid line, which causes an explicit height to be set. That is most likely what happened here.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.