NavigationBar custom style issues

Navigation for WPF Forum

Posted 13 years ago by Aimee
Version: 11.1.0545
Avatar
Hi,

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:
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
xmlns:docking="http://schemas.actiprosoftware.com/winfx/xaml/docking"
xmlns:navigation="http://schemas.actiprosoftware.com/winfx/xaml/navigation"

Should I be referencing something else?

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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
Avatar
Thanks, I have downloaded them now.

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

Add Comment

Please log in to a validated account to post comments.