Ribbon Style based on Office 2010 Theme

Nov 15, 2010 at 5:54 PM
  1. Is it possible to configure the WPF Ribbon in an Office 2010 VSTO application so that it picks up the style (blue, black, or silver) from Office 2010?
  2. If that isn't possible, I can create styles for the WPF Ribbon that match the Office 2010 theme selected via HKCU\Software\Microsoft\Office\12.0\Common\Theme.
  3. Does anyone have any WPF Resource dictionaries that match these themes?
  4. If I try to create my own style to match the Black Office 2010 theme, I am running into a challenge:  The foreground color for the Office 2010 Black theme is either black when a tab is selected or white when the tab is not selected.  There doesn't seem to be a style property that reflects the foreground color of non-selected tabs.  Does anyone have any suggestions that doesn't involve re-templating or subclassing?



Nov 15, 2010 at 8:47 PM

1. It is possible to configure / use WPF Ribbon in a Office 2010 VSTO application, However, it cannot pick up the Office 2010 Theme / style from Office.
2. Yes you can create a style(s) to match the selected Office 2010 Theme and you can also listen to the registry location specified in the post as well.
3. We don’t have any WPF Resources that match those themes.
4. Making the kind of changes this posting is referring to falls into two categories, (1) changes to the WPF Ribbon Control or (2) changes to the WPF Ribbon Window. There are API “shortcuts” that will allow you to set brushes for the most commonly used parts / elements of the Ribbon Control. However, there is no easy way to make the changes to the Ribbon Window. Making changes to the Ribbon Window requires re-templating the Ribbon Window.

Hope this helps!