0

I've got a strange behavior with the Microsoft ribbon library (the library which is included in .Net Framework 4.5). If I hide the complete ribbon, the areas below the ribbon tab headers look really ugly. I've build a test application and was able to reproduce this behavior (screen below)

enter image description here

The code of this application is very simple:

<Window x:Class="RibbonLibraryTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid Background="Yellow">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Ribbon Background="White">
            <RibbonTab Header="Test1"></RibbonTab>
            <RibbonTab Header="Test2"></RibbonTab>
            <RibbonTab Header="Test3"></RibbonTab>
            <RibbonTab Header="Test4"></RibbonTab>
        </Ribbon>
    </Grid>
</Window>

To hide the ribbon, I double click on one of the ribbon tabs like in MS Word. Seems to be a bug in the ribbon library. Is there a way to avoid this?

Philipp Eger
  • 2,235
  • 4
  • 23
  • 34
  • Could you share a code or a link to a project? When you say hidden do you mean visibility=hidden or collapsed? or are you using another tactic? – Eyal H Feb 28 '14 at 10:24
  • I added the code now to my question. To hide the window I double click on one of the ribbon tabs. – Philipp Eger Feb 28 '14 at 10:29
  • We had a similar problem which was caused through global styles. Do you use any? If so does it work without them? – Patrick Feb 28 '14 at 10:57
  • I use no global styles. This is a very simple test application which only consists of the code I posted in my question. – Philipp Eger Feb 28 '14 at 13:00
  • Can you please define what you mean by *look really ugly* in perhaps slightly more technical terms? I can see the picture, but the only *really ugly* thing that I can see is the yellow background. – Sheridan Feb 28 '14 at 23:54
  • Look at the left side of the ribbon, right from the application menu. The line below the ribbon items is not continous. It is interrupted below the ribbon tab headers. – Philipp Eger Mar 04 '14 at 11:19

0 Answers0