In MVVM should the ViewModel or Model implement INotifyPropertyChanged?

Posted by Edward Tanguay on Stack Overflow See other posts from Stack Overflow or by Edward Tanguay
Published on 2009-04-21T11:57:00Z Indexed on 2010/05/10 16:54 UTC
Read the original article Hit count: 343

Filed under:
|

Most MVVM examples I have worked through have had the Model implement INotifyPropertyChanged, but in Josh Smith's CommandSink example the ViewModel implements INotifyPropertyChanged.

I'm still cognitively putting together the MVVM concepts, so I don't know if:

  • you have to put the INotifyPropertyChanged in the ViewModel to get CommandSink to work
  • this is just an aberration of the norm and it doesn't really matter
  • you should always have the Model implement INotifyPropertyChanged and this is just a mistake which would be corrected if this were developed from a code example to an application

What have been others' experiences on MVVM projects you have worked on?

© Stack Overflow or respective owner

Related posts about mvvm

Related posts about c#