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?
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)
Infragisticswww.infragistics.com/support
Worked like a charm, thanks!