Skip to content

Instantly share code, notes, and snippets.

@KalinovDmitri
Created March 13, 2017 06:00
Show Gist options
  • Save KalinovDmitri/4d4aab8d10af7ad508d8051c6953c68f to your computer and use it in GitHub Desktop.
Save KalinovDmitri/4d4aab8d10af7ad508d8051c6953c68f to your computer and use it in GitHub Desktop.
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace CodeExamples.Wpf.Interactivity
{
public abstract class ViewModelBase : IViewModel
{
#region Events
public event PropertyChangedEventHandler PropertyChanged;
#endregion
#region Constructors
protected internal ViewModelBase() { }
#endregion
#region Class methods
protected virtual void RaisePropertyChanged([CallerMemberName]string propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
#endregion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment