문제

I have this coded in the implementation section of IDataErrorInfo in a model class for clearing the error once the errors are cleared.

I dont understand which property refresh is being raised here with an empty string?

if (raiseNotification)
                    this.RaisePropertyChanged("");
도움이 되었습니까?

해결책

Extracted from 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.

In this case, null, String.Empty or "" :^)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top