I am looking to add a hard coded or static level between a parent class and it's children properties.
I have a collection of Parent, and the parent class has 2 collection properties named Children 1 and Children 2.
class Parent {
public IEnumerable<Child1>Children1 { get; set; }
public IEnumerable<Child2>Children2 { get; set; }
}
I would like a tree to show the following:
Parent
>Children 1
>>Child1
>>Child1
>Children 2
>>Child2
>>Child2
I can't seem to figure out the correct combination of HierarchicalDataTemplate or DataTemplate to accomplish this. Can you point me in the right direction?
I have a collection of Parent, and the parent class has 2 collection properties named Children 1 and Children 2.
class Parent {
public IEnumerable<Child1>Children1 { get; set; }
public IEnumerable<Child2>Children2 { get; set; }
}
I would like a tree to show the following:
Parent
>Children 1
>>Child1
>>Child1
>Children 2
>>Child2
>>Child2
I can't seem to figure out the correct combination of HierarchicalDataTemplate or DataTemplate to accomplish this. Can you point me in the right direction?