BaseViewModel.cs 558 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Runtime.CompilerServices;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace WpfControlLibrary.IpAddress
  9. {
  10. public class BaseViewModel : INotifyPropertyChanged
  11. {
  12. public event PropertyChangedEventHandler PropertyChanged;
  13. protected void OnPropertyChanged([CallerMemberName] string propertyName = "")
  14. {
  15. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  16. }
  17. }
  18. }