Question

HeaderBackgroundNormal theme resource question

Posted 2 years ago by Avatar Krijn Michiels

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 ?

 

Thanks


Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA

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.

We define it like:

<SolidColorBrush x:Key="{x:Static themes:NavigationBarCommonDictionary.HeaderBackgroundNormalBrushKey}" Color="Transparent" themes:TintGroup.Name="Header" /> 

Just create a brush with that key (it could be a gradient brush) and it should override what our settings say.


Actipro Software Support
Information The latest build of this product (2014.2 build 0610) was released 2 months ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.