I've been working on a silverlight LOB application,
In my view models i have anywhere up to 30 properties which must notify the UI when they are changed.
My ViewModel base class implements INotifyPropertyChanged and has a wrapper method called OnPropertyChanged(string propName)
This is still incredibly tedious as in all my setters i have to call this.
I'd love to be able to have it automatically be fired on certain properties / all members of a decorated class.
Is this possible?
Thanks for the solutions everyone.. I think aspect orientation may be the most concise solution for this problem.. I think this is going to usher in a great exodus away from the Silverlight/RIA/EF/MVVM norm into a much simpler more concise approach..
Oh also to make this question as useful for others as possible the AOP framework i'm going for is PostSharp and they have a tutorial on achieving just this:
http://www.sharpcrafters.com/solutions/notifypropertychanged