Skip to content

Instantly share code, notes, and snippets.

@msiddiqi
Created October 6, 2012 20:45
public class ViewModelBase : INotifyPropertyChanged
{
#region INotifyPropertyChanged Implementation
public event PropertyChangedEventHandler PropertyChanged = delegate { };
protected void OnPropertyChanged(string propertyName)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
#endregion INotifyPropertyChanged Implementation
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment