Created
March 13, 2017 06:00
-
-
Save KalinovDmitri/4d4aab8d10af7ad508d8051c6953c68f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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