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
XamRibbon Change ColorThemes Office2013 Style
posted

Hello,

I tried to Change the backgroundcolors of the Office2013 Theme for the XamRibbon.

I Use the XamRibbon in a XamRibbonWindow. I tried to Change the Color with the BrushWasher, whitch work fine for any other themes. 

but i like to use the flat style from the Office2013 theme. 

Furthermore I try to rebuild the style I've created in the Infragistics AppStylist 2018.1 for forms. 

goal style

I tried to Change the Transparent KeyColors of the theme, which are created from the ColorTuner. Unfortunaly Nothing happen.

So now i try to Change the WashGroups and the wash Color TabArea. 

Hopefully I have to finde the Right WashGroup Name.

But, I guess, the backgrounds a transparent by Default. So I look for the Right theme to change. But where is

"xmlns:themes="">infragistics.com/Themes"  saved?

current picture

<ribbon:XamRibbonWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WPFWindowHostWF"
        xmlns:ribbon="http://infragistics.com/Ribbon"
        xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        xmlns:themes="http://infragistics.com/Themes"

        x:Class="WPFWindowHostWF.MainWindow"
        mc:Ignorable="d"
        Title="MainWindow" WindowStyle="None"
        SizeToContent="WidthAndHeight">

    <ribbon:XamRibbonWindow.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- First, import the base theme we are going to wash to ensure
                    the correct ControlTemplates are used-->
  
                <!-- Add a ResourceWasher -->
                <!-- Note:
                    1. The WashMode property defaults to "SoftLightBlend" but can be set to "HueSaturationReplacement"
                    2. If the WashColor of an individual WashGroup is not set or is left to its default value of "Transparent" then the resources are not washed
                    -->
                <themes:ResourceWasher AutoWash="True" WashMode="HueSaturationReplacement" WashColor="Gray" >
                    <themes:ResourceWasher.SourceDictionary>
                        <ResourceDictionary>
                            <ResourceDictionary.MergedDictionaries>
                                <themes:RibbonOffice2013/>
                            </ResourceDictionary.MergedDictionaries>
                        </ResourceDictionary>
                    </themes:ResourceWasher.SourceDictionary>
                    <themes:ResourceWasher.WashGroups>
                        <themes:WashGroupCollection>
                            <!-- Specify WashColors for each WashGroup in the Theme. The WashGroups are the same in all themes. -->
                            <themes:WashGroup Name="TabArea" WashColor="Red"/>
                            <themes:WashGroup Name="Pressed" WashColor="Red"/>
                            <themes:WashGroup Name="BaseColor" WashColor="Red"/>
                        </themes:WashGroupCollection>
                    </themes:ResourceWasher.WashGroups>
                </themes:ResourceWasher>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </ribbon:XamRibbonWindow.Resources>
 

Best regards,

Nico

Parents
No Data
Reply
  • 7375
    Offline posted

    Hello ,

    Thank you for posting. XamRibbon is a WPF-specific control and all the WPF-specific controls are in DefaultStyles. so :

    Infragistics/2018.1/WPF/DefaultStyles/Ribbon/RibbonOffice2013.xaml is the file you want.

    Please let me know if you need further assistance.

    Sincerely,

    Divya Jain

    Associate Software Developer

Children