using HierarchicalDataTemplate with different nested types
问题 There seems to be a ton of information on HierarchicalDataTemplate, but I have had a hard time finding info specific enough to help me out with hierarchies containing different types. Assuming the following class structure: public class classA { public string name{get;set;} } public class classB { public string name{get;set;} public List<classA> subItems{get;set;} } public class classC { public string name{get;set;} public List<classB> subItems{get;set;} } Now taking into assumption the