Вопрос

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