一、INotifyPropertyChanged(View-ViewModel属性值改变通知属性)
1、封装INotifyPropertyChanged接口
using System.ComponentModel;

public class NotifyBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void DoNotify([CallerMemberName] string propName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
}
}
2、使用NotifyBase.cs(存放于Common路径下)
A、引用Common命名空间
B、使用方法
例:
public class WindElementViewData :NotifyBase
{//快捷键 propfull
private string _viewTime = "未查看";
public string ViewTime