pla-01/Life/ViewModel/BaseViewModel.cs
2019-10-26 16:47:08 +02:00

17 lines
512 B
C#

using System.ComponentModel;
using System.Runtime.CompilerServices;
using Life.Annotations;
namespace Life.ViewModel
{
public abstract class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}