Navigation for WPF Forum

Posted 13 years ago by Jon Cain - Software Architect, AutoMon Corporation
I have a scenario where I need to change the content of a breadcrumb MenuItem based on data type. My problem is, the breadcrumb control appears to ignore the MenuItemTemplateSelector property.

My code basically looks like the following:

<local:BreadcrumbItemTemplateSelector x:Key="BreadcrumbItemTemplateSelector" />
<nav:Breadcrumb x:Name="breadcrumb"
RootItem="{Binding Path=Tree}"
ItemTemplate="{StaticResource BreadcrumbItemTemplate}"
ItemContainerStyle="{StaticResource HomeBreadcrumbItemStyle}"
MenuItemTemplateSelector="{StaticResource BreadcrumbItemTemplateSelector}"
MenuItemContainerStyle="{StaticResource MenuItemContainerStyle}" />

[Modified at 06/03/2009 08:57 PM]

Comments (1)

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

You currently need to explicitly set MenuItemTemplate to null (e.g. add MenuItemTemplate="{x:Null}") because the default style sets a default for this, and it takes precedence over the Selector.

Actipro Software Support

The latest build of this product (v22.1.3) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.