HierarchicalDataTemplate and HeaderedItemsControl with ControlTemplate fails to show nested data
问题 I can get this pattern to work with Menu and TreeView but I must be missing something when I make an attempt with HeaderedItemsControl : <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Page.Resources> <HierarchicalDataTemplate x:Key="MenuItemTemplate" ItemsSource="{Binding XPath=foo}"> <AccessText Text="{Binding XPath=@a}" /> </HierarchicalDataTemplate> <Style