Skip to content

Instantly share code, notes, and snippets.

@Jalalx
Created March 31, 2015 08:38
Show Gist options
  • Save Jalalx/25f3655086a83c300c10 to your computer and use it in GitHub Desktop.
Save Jalalx/25f3655086a83c300c10 to your computer and use it in GitHub Desktop.
public abstract class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = this.PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment