I am trying to build a selector for the TreeNavigator, but when I build the HierarchicalDataTemplate outside of the TreeNavigator all the items come back blank. If I changed the Items to just DataTemplates it works just fine, but when I use HierarchicalDataTemplate it just returns a blank item with nothing in it. I know it is passing the information because I click the item and the SelectionChanged is there, and I know the Template works because it works just fine if I don't use the TemplateSelector.
This is what I do,
<UserControl.Resources>
<DataTemplate x:Key="CheckItem">
<StackPanel Orientation="Horizontal">
<CheckBox Name="cbItem" VerticalAlignment="Center" Margin="18,0,0,0"/>
<TextBlock Text="{Binding Path=Header}" VerticalAlignment="Center" Margin="5,0,0,0"/>
</StackPanel>
</DataTemplate>
<sfp:HierarchicalDataTemplate ItemsSource="{Binding Path=Models}" x:Key="ExtendableItem">
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Path=Header}" VerticalAlignment="Center" Margin="18,0,0,0"/>
</StackPanel>
</DataTemplate>
</sfp:HierarchicalDataTemplate>
<Classes:DrawerItemSelector x:Key="DrawerItemSelector" CheckableItem="{StaticResource CheckItem}" ExpandableItem="{StaticResource ExtendableItem}"/>
<Style TargetType="sfn:SfTreeNavigatorItem">
<Setter Property="Height" Value="53"/>
</Style>
<Style TargetType="sfn:TreeNavigatorHeaderItem">
<Setter Property="Height" Value="50"/>
<Setter Property="Margin" Value="0,1,0,1"/>
</Style>
</UserControl.Resources>
<sfn:SfTreeNavigator NavigationMode="Extended" ItemsSource="{Binding}" ItemTemplateSelector="{StaticResource DrawerItemSelector}" Name="sftnTree" SelectionChanged="sftnTree_SelectionChanged"/>
Any help would be appreciated.