前端使用{BingDing}
后端类继承:INotifyPropertyChanged
声明通知:
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(string info)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
var e = new PropertyChangedEventArgs(info);
handler(this, e);
}
}
使用通知
public string _qianYinZd4;
public string qianYinZd4
{
get { return _qianYinZd4; }
set { _qianYinZd4 = value; NotifyPropertyChanged("qianYinZd4"); }
}