Navigation for WPF Forum

Posted 15 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 15 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 (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.