1
Vote

BreadCrumbItem ItemTemplate issue..

description

Hi, I'm trying to use this fantastic object, and I'm expecting a strange issue when I want to use a "keyed" HierarchicalDataTemplate for BreadCrumbItems.
 
My Xaml is something like this:
 
<BreadcrumbLib:BreadcrumbItem ItemsSource="{Binding Source={StaticResource MyList}}" ItemTemplate="{StaticResource MyListTemplate}">
  <BreadcrumbLib:BreadcrumbItem.Header>
<Image Source="Journal.png"/>
  </BreadcrumbLib:BreadcrumbItem.Header>
</BreadcrumbLib:BreadcrumbItem>
 
where MyListTemplate is defined as follows:
 
<HierarchicalDataTemplate x:Key="MyListTemplate" DataType="{x:Type src:League}" ItemsSource="{Binding Path=Divisions}" >
  <TextBlock Text="{Binding Path=Name}"/>
</HierarchicalDataTemplate>
 
If I remove ItemTemplate from BreadcrumbItem everything works, but if I use a "keyed" template it doesn't work.
Is there something I missed or is this a kind of bug?
 
Thanks Enrico

comments