This is probably a little help, but you can use the params keyword so that you can change more than one property at a time.
public event PropertyChangedEventHandler PropertyChanged; public void NotifyPropertiesChanged(params string[] Properties) { if (PropertyChanged != null) foreach (string property in Properties) PropertyChanged(this, new PropertyChangedEventArgs(property)); }
This reduces the number of lines you use when notifying you of future property changes. So you use:
NotifyPropertiesChanged ("foo", "bar");
Instead:
NotifyPropertyChanged ("Foo"); NotifyPropertyChanged ("bar");
Otherwise, I agree with Anders' suggestion that it be moved around the inheritance tree, it would probably be better.
source share