I am currently away from home (and will be for a few more weeks) and only have a tablet - therefore, I have no access to Visual Studio to test what I'm trying to learn - the MVVM
pattern.
So far, I think the theory is set, but I'm confused about the INotifyPropertyChanged
interface.
I think one of the ideas of the MVVM pattern is to be able to update the Model which in turn notifies the ViewModel which in turn notifies the view. If I'm wrong then the rest of this question is meaningless.
My question is, do all the classes have to share 1 implementation of INotifyPropertyChanged
?
In other words, which is correct:
A property name is the same for all classes (but each class has it's own unique implementation of
INotifyPropertyChanged
)A property name is the same for all classes (and each class inherits from a single base class which implements
INotifyPropertyChanged
)?