Question

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("");
Était-ce utile?

La solution

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 "" :^)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top