Change Theme of .NET 4.5 WPF Ribbon

user667967 picture user667967 · Nov 1, 2012 · Viewed 9k times · Source

I am trying to change the theme of the new WPF Ribbon Control from .NET Framework 4.5 and I am stuck.

I only managed to change some brushes (Background, Foreground, Border ...) but I seem to be unable to change the bright overlay and shadows.

I am happy to use a resource dictionary but I don’t know which properties I need to set.

I hope you can point me in the right direction, thank you much for your help!

Answer

Striver picture Striver · Jan 31, 2016

If you want to change anything more than the exposed properties of the Ribbon control (or any other control) e.g. Background, Foreground etc. you will have to edit the control's Template.

In a control's template you can change almost anything that's part of the control's visual appearance.

For more information on customizing a control's template have a look on this link: MSDN Styling & Templating