ViewModel.cs 498 B

12345678910111213141516
  1. using System.ComponentModel;
  2. using System.Runtime.CompilerServices;
  3. namespace AIPractice.LabellerServer.ViewModels
  4. {
  5. public class ViewModel : INotifyPropertyChanged
  6. {
  7. public event PropertyChangedEventHandler PropertyChanged;
  8. [NotifyPropertyChangedInvocator]
  9. protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
  10. {
  11. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  12. }
  13. }
  14. }