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
1735
Ribbon resource washing
posted

Hi,

I'm experimenting with changing colors in the new Office 2013 theme in version 14.1. I'm using the Infragistics Color Tuner from within Visual Studio.

For most controls, everything works as expected, but the Ribbon does not seem to act upon changes to the colors. The attached zip file shows two examples of the Ribbon being 'washed' with a green color.

As the ribbon1.jpg image shows, the Ribbon still uses the default blue base color.

The ribbon2.jpg shows another strage effect in that parts of the ComboEditorTool uses the default, blue color while other parts (the expanded part) uses the green color I supplied.

In addition to making modifications to my existing application I also tried this on a simple sample application, but with the same effect; The ribbon is not correctly 'washed' with the changed colors. Are the changes made by the Infragistics Color Tuner not sufficient for modifying the Ribbon, and are additional steps required ? What am I doing wrong ?

Regards,
Leif

ribbon.zip
Parents
No Data
Reply
  • 12875
    posted

    Hi Leif, 

    It's hard for me to tell from your images exactly how you are incorporating the ResourceWasher into you application. 

    There is a very good sample in the Feature Browser to give you some idea about the impact of using the washer. Look in the XamRibbon in the Style section for Live ResourceWasher.  It allows you to change the base theme and the WashMode as well as change the single wash color you are using.

    I took a xamRibbon sample that I have and removed any reference to Theme on the controls.  Then I added the ResourceWasher to the Application’s ResourceDictionary in MergedDictionaries. 

    You need to add a namespace to your app.xaml file for the Themes.

    xmlns:igThemes=http://infragistics.com/Themes

     Then you can add the ResourceWasher and modify as you need.

    <ResourceDictionary.MergedDictionaries> 

        <igThemes:RibbonOffice2013 /> 

        <igThemes:ResourceWasher AutoWash="True" WashColor="#FF76923C"  WashMode="HueSaturationReplacement" >

            <igThemes:ResourceWasher.SourceDictionary>

                <igThemes:RibbonWashBaseLight />

            </igThemes:ResourceWasher.SourceDictionary>

         </igThemes:ResourceWasher> 

    </ResourceDictionary.MergedDictionaries>

    Please let me know if you have any questions.

    WPF_xamRibbon_Wash.zip
Children