ObservableCollections in ViewModel and IEnumerables in Models?
1 answer
You can list any collection that implements the
IEnumerable
interface. However, to configure dynamic linking so that inserts or deletions in the collection UI are automatic, the collection must be implementedINotifyCollectionChanged
.
I am interpreting this to mean that the main goal ObservableCollection
is to provide a better user interface with the collection. From this point of view, ObservableCollections make sense in ViewModel
, but not in Model
.
+1
a source to share