Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
XamRibbon background in tab panel
posted

I'm creating a new application using the latest version (2024.1) of the Ultimate UI for WPF and have a problem with the XamRibbon.  The tab panel appears to have a background with some shading and I can't seem to find any way of removing this.  The screenshot below illustrates the problem.  This is a simple application with no ApplicationMenu and no Ribbon groups, just to illustrate the issue. 

In this example, I've used the following code:

<igWPF:RibbonWindowContentHost
    Background="White">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="144" />
            <!-- Ribbon Row -->
            <RowDefinition />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <igRibbon:XamRibbon
            Theme="Office2013">
            <igRibbon:XamRibbon.ApplicationMenu>
                <igRibbon:ApplicationMenu />
            </igRibbon:XamRibbon.ApplicationMenu>
            <igRibbon:XamRibbon.QuickAccessToolbar>
                <igRibbon:QuickAccessToolbar Visibility="Collapsed" />
            </igRibbon:XamRibbon.QuickAccessToolbar>
        </igRibbon:XamRibbon>
    </Grid>
</igWPF:RibbonWindowContentHost>

In a previous project, using a version of the tools from 2022, I get a nice clean UI using exactly the same theme with no additional changes, as far as I can tell.

What's really odd is that the shaded background isn't visible in the designer in Visual Studio.

Has something changed?

How do I get the simple, clean layout that I want/need/had before?

Thanks, Andy

I can't upload the image...

Parents
No Data
Reply
  • 34790
    Verified Answer
    Offline posted

    Hello Andy,

    It appears from your code that you have applied the Office2013 theme to the XamRibbon, but not to the RibbonWindowContentHost, and while I cannot see the screenshot that you mentioned, I can see that this is causing a different background than what is applied to the XamRibbon. I would recommend setting the Theme=”Office2013” on the RibbonWindowContentHost tag, as this should resolve the issue you are seeing.

    Please let me know if you have any other questions or concerns on this matter.

Children