HeaderBackgroundNormal theme resource question

I have a custom HeaderedContentControl where the header looks exactly like the header from the navigationbar.With Office2007Blue my background looks the same as Outlook 2007 using the {DynamicResource {x:Static themes:NavigationBarCommonDictionary.HeaderBackgroundNormalBrushKey}}.

But when theme is switched to Office2010Blue the background is white.

Why is the {DynamicResource {x:Static themes:NavigationBarCommonDictionary.HeaderBackgroundNormalBrushKey}} color not the default Office2010Blue/Silver/Black color ?

Comments (1)

Hello, I assume you are talking about an older version like 2011.1? Your post indicates 2012.1 but that version doesn't have that resource key any more.

In 2011.1, the Office 2010 navbar doesn't have a displayed header area like in Office 2007 so that particular resource key is set to Transparent for those 2010 themes. You'd have to set it yourself as an override in your app Resources, or load it in dynamically via a XAML resource dictionary into your App resources following a theme change.