public event PropertyChangedEventHandler PropertyChanged;
protected virtual void NotifyPropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
WPF的INotifyPropertyChanged 接口使用
最新推荐文章于 2024-05-08 20:10:19 发布