|
1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System.ComponentModel;
- using System.Windows.Ink;
-
- namespace XHWK.Model
- {
- public class ViewModel : INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
-
- protected virtual void OnPropertyChanged(string propertyName = null)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- }
-
- private string meaInfo;
- public string MeaInfo
- {
- get => meaInfo;
- set
- {
- meaInfo = value;
- OnPropertyChanged("MeaInfo");
- }
- }
-
- private StrokeCollection inkStrokes;
- public StrokeCollection InkStrokes
- {
- get => inkStrokes;
- set
- {
- inkStrokes = value;
- OnPropertyChanged("InkStrokes");
- }
- }
- }
-
- }
|