Showing posts with label MVVM. Show all posts
Showing posts with label MVVM. Show all posts

Wednesday, April 1, 2015

Serialization Exception: PropertyChangedEventManager is not serializable

Since events are non serializable, here is the way out to deal the problem when serializing model classes which have a property changed event to notify the view model classes:

http://www.primordialcode.com/blog/post/serialization-exception-propertychangedeventmanager-serializable

[NonSerialized]
private PropertyChangedEventHandler _PropertyChanged;
 
public virtual event PropertyChangedEventHandler PropertyChanged
{
  add { _PropertyChanged += value; }
  remove { _PropertyChanged -= value; }
}

Thursday, November 27, 2014

10 things you might have missed about MVVM Light

http://www.spikie.be/blog/post/2013/04/12/10-things-you-might-have-missed-about-MVVM-Light.aspx