Modify Theme

Sep 5, 2013 at 12:13 PM
Dear,

I would like to modify a theme (change the color of the RibbonTabItem for exemple).
What is the best way to do it ?
It’s possible to do it without modify source code ?

Best regards
Coordinator
Sep 12, 2013 at 2:11 PM
Edited Sep 12, 2013 at 2:12 PM
Hello, Favern.

You have some options:
1) BasedOn property can help you to modify something without re-creating whole style (see http://msdn.microsoft.com/en-us/library/system.windows.style.basedon.aspx).
2) If you need to change only some colors you can define brushes in your resourcedictionary of window/control. Names of brushes should be the same as names which you can find in source code.
3) You can grab all style and modify it, however I wouldn't recommend that option

Daniel
Sep 19, 2013 at 7:56 AM

Dear Daniel

Thank you very much for your help.

I have tried the second solution but i have a problem. I have coded that is a ResourceDictionary :

<Style TargetType="{x:Type Fluent:RibbonTabItem}">

<Setter Property="ActiveTabBackgroundBrush" Value="Red" />

</Style>

However the "ActiveTabBackGroundBrush" is not recognized.

What is the good way to modify the Active tab Background ?

Thank you.

Best regards

Philippe

De : daVinci [email removed]
Envoyé : jeudi 12 septembre 2013 16:12
À : [email removed]
Objet : Re: Modify Theme [fluent:455599]

From: daVinci

Hello, Favern.

You have some options:
1) BasedOn property can help you to modify something without re-creating whole style (see http://msdn.microsoft.com/en-us/library/system.windows.style.basedon.aspx).
2) If you need to change only some colors you can define brushes in your resourcedictionary of window/control. Names of brushes should be the same as names which you can find in source code.
3) You can grab all style and modify it, however I wouldn't recoment that option

Daniel