RibbonWindow background not set with IsGlassEnabled true

Ribbon for WPF Forum

Posted 5 years ago by Roberta
Version: 14.1.0602
Avatar

Hello to everybody,

It looks like the background of a RibbonWindow is not applied unless the IsGlassEnabled property is set to false.

If the IsGlassEnabled property is not set or it is set to true then the Background propery is ignored.

Here is an example:

<ribbon:RibbonWindow x:Class="WpfApplication1.MainWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
                     x:Name="mainWindow"
                     Title="MainWindow"
                     Height="350" Width="525"

                     Background="Yellow"
                     IsGlassEnabled="True"
                     >     

 

Thank you,

Roberta 

Comments (1)

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Roberta,

Yes, the WindowChrome (which is used by RibbonWindow interally to do the chroming) has to alter the Window.Background in order to support configurations of glass and non-glass so that will trigger what you see.  I would recommend that you put a Border with its Background set as your root control within RibbonWindow.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) 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.