I'm using a TreeView with a Hierarchical Data Template to bind to a View Model hierarchy, my problem is i have multiple child collections of different types (same base class though). Seems relatively simple to use the template to bind one of the collections but i'm struggling to work out how to do both.
class ParentViewModel
{
List<FooViewModel> FooCollection {get; set;}
List<BarViewModel> BarCollection {get; set;}
}
This is kind of what i'm trying to achieve, but wondered if there's a simple way to do it: