This project has moved and is read-only. For the latest updates, please go here.


VerifyPropertyName should ignore strings that are null or empty


There are times when it is practical to do change notification for all properties of an object. According to the Silverlight 4 documentation of the PropertyChangedEvent:

"The PropertyChanged event can indicate that all properties on the object have changed by using either null or String.Empty for the PropertyName property of the PropertyChangedEventArgs."

Unfortunately, when RaisePropertyChanged is called with null or an empty string an exception is thrown. To avoid this problem please add the following two lines at the beginning of VerifyPropertyChanged to support this use case in the future:


Closed Oct 13, 2014 at 1:54 PM by lbugnion


ecathell wrote Aug 17, 2011 at 2:18 PM

This is not correct. This will cause the code to simply return without triggering the desired update.