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("");
Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top