Model without propertychanged

Topics: Questions
Sep 24, 2013 at 11:07 AM
If my property in model has no propertychanged, only the mapped property in viewmodel.
Is the view refreshed when the property in the model changed?
Sep 26, 2013 at 9:15 PM
No, because there is no way the view model can know that a model has changed. When a model does not implement INotifyPropertyChanged, it will only update at startup (setting the model) and saving. Basically this is what happens:

1) When setting a model to a value, it maps all properties
2) When setting a model to another value without saving, all properties are restored (CancelEdit)
3) When saving the view model, all existing models will be updated