I have an object with a list of sub-objects, each of which can be a different type. These sub objects will then have a list of sub-sub-objects, which also will have different types, and I'd like them all to have different template in my tree view (to allow for different context menus, etc.)
Essentially, I'm looking to have:
- GlobalType (which contains a list of ISubType)
- SubType1 (Which contains a list of ISubSubType)
-SubSubType1
-SubSubType2
- SubType2 (Which contains a list of ISubSubType)
-SubSubType3
-SubSubType4
If I have my ItemTemplateSelector for the TreeView properly defined (i.e, for each of GlobalType, SubType1, SubType2, SubSubType1, ...), will it properly set the templates for the nested items?