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:
INotifyPropertyChanged
in the ViewModel to get CommandSink
to workINotifyPropertyChanged
and this is just a mistake which would be corrected if this were developed from a code example to an applicationWhat have been others' experiences on MVVM projects you have worked on?
I'd say quite the opposite, I always put my INotifyPropertyChanged
on my ViewModel - you really don't want to be polluting your model with a fairly WPF specific feature like INotifyPropertyChanged
, that stuff should sit in the ViewModel.
I'm sure others would disagree, but that's the way I work.