I am binding an ObservableCollection to a ListBox in Silverlight. The list can contain multiple Person or Vehicle objects which both derive from DomainObject. I would like to be able to have a different template for Person and Vehicle, but show them both in the same list. What is the best way to do this?
views:
158answers:
1
+2
A:
DataTemplateSelector is not available in silverlight but there are a few resources around showing examples of how to implement it in a control.
Crippeoblade
2009-04-06 07:27:44