NavigationBar custom style issues

Navigation for WPF Forum

Posted 13 years ago by Aimee
Version: 11.1.0545

I am using a navigation:navigationBar and wanted to customise the styles.
As I didn't know what the default styles and template were, i opened up your demo project (NavigationBarIntro) into Expression Blend so that I could right click on the NavigationPane and edit a copy of the template. This will then give me all of the styles and triggers for this control.

Though, I have put this into my project, but it does not recognise some of the options.
Inside this <Style x:Key="NavigationPaneStyle1" TargetType="{x:Type navigation:NavigationPane}"> it doesnot recognise the following:

<Setter Property="HeaderInnerBorderHover" Value="{DynamicResource {ComponentResourceKey ResourceId=PaneHeaderInnerBorderHover, TypeInTargetAssembly={x:Type navigation:NavigationBar}}}"/>
<Setter Property="HeaderInnerBorderHoverSelected" Value="{DynamicResource {ComponentResourceKey ResourceId=PaneHeaderInnerBorderHoverSelected, TypeInTargetAssembly={x:Type navigation:NavigationBar}}}"/>

There are more options is doesn't recognise, but they are all the inner and outer borders and the highlighthover etc.

I get a build error saying the following:
Cannot find the Style Property 'HeaderInnerBorderHover' on the type 'ActiproSoftware.Windows.Controls.Navigation.NavigationPane'. Etc.

I am referencing the following in my style document:

Should I be referencing something else?

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Aimee,

Blend doesn't generally pull out default styles/templates correctly, and those setters you listed aren't right. If you are a WPF Studio suite customer, you can download the default styles/templates from your Actipro account. Or if you have purchased NavigationBar separately, please write our support address an email and we'll be happy to send the NavigationBar styles/templates to you.

Actipro Software Support

Posted 13 years ago by Aimee
Thanks, I have downloaded them now.

Thanks for your prompt response.
The latest build of this product (v24.1.2) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.