1public class ViewModel
2{3 public ViewModel()4{5 MyProperty = new System.Collections.ObjectModel.ObservableCollection<ItemModelBase>();6 MyProperty.Add(new ItemModelA());7 MyProperty.Add(new ItemModelB());8 MyProperty.Add(new ItemModelC());9}1011 public System.Collections.ObjectModel.ObservableCollection<ItemModelBase> MyProperty { get; set;}12}1314public class ItemModelBase {}15public class ItemModelA : ItemModelBase {}16public class ItemModelB : ItemModelBase {}17public class ItemModelC : ItemModelBase {}