Should I use ObservableCollections in my Model in M-V-VM
Posted
by Bill Jeeves
on Stack Overflow
See other posts from Stack Overflow
or by Bill Jeeves
Published on 2010-06-14T08:57:53Z
Indexed on
2010/06/14
9:02 UTC
Read the original article
Hit count: 165
mvvm
|silverlight-4.0
I'm completely new to M-V-VM and very new to Silverlight, just reading about it for the first time today. As a sample, I am creating a model containing a list of items. My (Silverlight 4) View contains a listbox and my ViewModel will look to the model to retrieve the collection that the listbox will bind to.
My question is this. I think it would be good to use an ObservableCollection to hold the items that the listbox binds to. This would be an ObseravleCollection in the ViewModel. Should I also use this type of collection in the model, or should I use another collection type and do smoe conversion between model and viewmodel?
© Stack Overflow or respective owner