What happend to RibbonThemeColor?

Sep 2, 2014 at 1:37 PM
Where did the RibbonThemeColor go?

I've tried to understand the Source Code with the new MetroColors key stuff, but I just don't get how to set the Theme Color the right way.
Developer
Sep 2, 2014 at 2:19 PM
Take a look at ColorsWhite.xaml, it's used there.
Marked as answer by batzen on 9/20/2014 at 4:14 AM
Sep 24, 2014 at 12:57 PM
Thanks, just in case anyone else wonders how to change this quickly:
<fluent:RibbonWindow.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Fluent;Component/themes/office2013/generic.xaml" />
        </ResourceDictionary.MergedDictionaries>

        <!--  This "override" is needed to change the ribbon theme color, do not remove!  -->
        <Color x:Key="{x:Static fluent:MetroColors.ThemeColorKey}">#FFF66AC1</Color>
    </ResourceDictionary>
</fluent:RibbonWindow.Resources>
The old way was more convenient, but it works.
Marked as answer by batzen on 9/24/2014 at 10:40 AM
Sep 24, 2014 at 5:11 PM
That's really cool, I didn't know that :-). Unfortunately it doesn't change the color on the application menu header, it's always blue.
Developer
Sep 24, 2014 at 5:42 PM
The application menu header issue is still open and on my list. ;-)

Staeff, would you prefer to be able to set the color on a window based fashion? I changed the theme color to be like that to be able to change the color for all windows at once.
Sep 25, 2014 at 6:33 AM
The window based way was more convenient because most of the times I would use Fluent with other Metro Style libraries like MahApps.Metro, they have multiple different color styles and I was able to use them really easy in my Ribbon applications with code that would look something like this:
<fluent:RibbonWindow
    ...
    ThemeColor="{DynamicResource AccentColor}"
    ...>

    <fluent:RibbonWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Fluent;Component/themes/office2013/generic.xaml" />
                <ResourceDictionary Source="/MahApps.Metro;component/Styles/Accents/Green.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </fluent:RibbonWindow.Resources>
I havn't found a way to set a color tag to a DynamicResource value
<Color x:Key="{x:Static fluent:MetroColors.ThemeColorKey}">
    <DynamicResource ResourceKey="AccentColor" />
</Color>