18 lines
518 B
C#
18 lines
518 B
C#
|
using System.ComponentModel;
|
|||
|
using System.Runtime.CompilerServices;
|
|||
|
|
|||
|
namespace PettingZoo.Infrastructure
|
|||
|
{
|
|||
|
public class BaseViewModel : INotifyPropertyChanged
|
|||
|
{
|
|||
|
public event PropertyChangedEventHandler PropertyChanged;
|
|||
|
|
|||
|
protected virtual void RaisePropertyChanged([CallerMemberName] string propertyName = null)
|
|||
|
{
|
|||
|
var handler = PropertyChanged;
|
|||
|
if (handler != null)
|
|||
|
handler(this, new PropertyChangedEventArgs(propertyName));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|