我在模型类中的 IDataErrorInfo 的实现部分中对此进行了编码,以便在错误清除后清除错误。
我不明白此处使用空字符串引发了哪个属性刷新?
if (raiseNotification)
this.RaisePropertyChanged("");
最佳答案
摘自MSDN :
The PropertyChanged event can indicate all properties on the object have changed by using either null or String.Empty as the property name in the PropertyChangedEventArgs.
在本例中,为 null、String.Empty 或 "":^)
关于c# - this.RaisePropertyChanged ("")是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21335581/