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
80
Setting background of a XamTabControl in a XamRibbon
posted

If I have the following code:

http://pastebin.com/WC0VJeKU

And I want to make it so that the background o the XamTabControl has a different colour than the original. I tried different approaches, like editing template and setting Background in the PART_HeaderArea's DockPanel to Red, but it takes no effect.

How would I achieve this?

Parents
No Data
Reply
  • 2151
    Verified Answer
    Offline posted

    Hi Joao,

    Thank you for your email. The following code snippet will show you how to change the background behind the tabs:

    <igRibbon:XamRibbon>

        <igRibbon:XamRibbon.Resources>

            <SolidColorBrush

                x:Key="{x:Static igRibbon:RibbonBrushKeys.RibbonTabControlHeaderPanelBackgroundKey}"

                Color="#FFFF0000" />

        </igRibbon:XamRibbon.Resources>

        <igRibbon:RibbonTabItem Header="Main" />

        <igRibbon:RibbonTabItem Header="Edit" />

    </igRibbon:XamRibbon>

    If you have any other question please do not hesitate to ask.

    Sincerely,

    Radko

    Principal Product Developer (XAML)

    Infragistics
    www.infragistics.com/support

Children