星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ViewModel.cs 975B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.ComponentModel;
  2. using System.Windows.Ink;
  3. namespace XHWK.Model
  4. {
  5. public class ViewModel : INotifyPropertyChanged
  6. {
  7. public event PropertyChangedEventHandler PropertyChanged;
  8. protected virtual void OnPropertyChanged(string propertyName = null)
  9. {
  10. if (PropertyChanged != null)
  11. {
  12. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  13. }
  14. }
  15. private string meaInfo;
  16. public string MeaInfo
  17. {
  18. get => meaInfo;
  19. set
  20. {
  21. meaInfo = value;
  22. OnPropertyChanged("MeaInfo");
  23. }
  24. }
  25. private StrokeCollection inkStrokes;
  26. public StrokeCollection InkStrokes
  27. {
  28. get => inkStrokes;
  29. set
  30. {
  31. inkStrokes = value;
  32. OnPropertyChanged("InkStrokes");
  33. }
  34. }
  35. }
  36. }