星火微课系统客户端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ViewModel.cs 1.0KB

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