Hi,
I need to change the background color of xamRibbon's tab panel area. I have refered the style written for xamRibbon in RibbonGeneric.xaml file however not finding the place where I can change the background color.
Can anyone please guide me on this.
Thanks in advance.
Thanks,
Ashish
Hello Ashish,
Thank you for your post. I have been looking through it and I suggest you retemplate the style for xamTabControl. You can find it in the DefaultStyles folder which is installed by default here: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.3\WPF\DefaultStyles and in it you can use: \Ribbon\RibbonGeneric.xaml file to copy the style. In it you can change the Background Property of a Border named “innerContentBorder” to achieve your goal.
If you have any further questions on this matter do not hesitate to ask.
Hi Stefan,
Thanks for the help however changing background color of innerContentBorder is not changing the backgrounnd of xamRibbon tab panel area. I dont know why. I am attaching image of exactly what is the requirement
The requirement that you want can be easily achieved using ResourceWasher. You can see sample in our xamFeatureBrowser - in ribbon's "Live ResourceWashing" sample.
All you have to do is to copy/paste this snippet in your project's App.xaml file:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<igThemes:RibbonOffice2k7Black />
<igThemes:ResourceWasher AutoWash="True" WashMode="HueSaturationReplacement" >
<igThemes:ResourceWasher.SourceDictionary>
<igThemes:RibbonOffice2k7BlackBrushes />
</igThemes:ResourceWasher.SourceDictionary>
<igThemes:ResourceWasher.WashGroups>
<igThemes:WashGroupCollection>
<igThemes:WashGroup Name="HeaderPanel" WashColor="#FFCCA833"/>
</igThemes:WashGroupCollection>
</igThemes:ResourceWasher.WashGroups>
</igThemes:ResourceWasher>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Hope this helps you.
Regards,
Anastas
Does this code just work for RibbonOffice2k7Black?If I change to aero for instance, the color of HeaderPanel is not changed.
Any Ideas on how to solve it?
Thanks!Anderson
Hello Anderson,
In the Samples Browser under xamRibbon / Style / Live ResourceWashing section there is a sample showing, which themes are supported for live resource washing.