I have an object that has 2 properties, each of which is an ObservableCollection. The first is of type T, the second is of type S, which derives from T. I'd like to display these in a TreeListBox with collection 1 coming first and then collection 2.
I tried returning a CompositeCollection containing 2 CollectionContainers, each assigned to the appropriate collection. This wouldn't be ideal since each collection would be displayed in it's own sub tree but I couldn't even get that to work. The CollectionConatiners show up in the TreeListBox but GetChildren is never called passing the CollectionContainer in and the object so no children are displayed.
Is there a way I can make this work or will I need to implement my own custom object that implemented INotifyCollectionChanged?