Hello Everyone ,
I have a class with 10 Bindable properties , ( it's a presentation class ). When one of these properties changes , I want to dispatch an event to do something. I know I could use getters/setter , but 10 getters and 10 setters is kind of excessive don't you think. Maybe the solution is an architectural one. Points will be awarded to successfull/helpful/mind-blowing answers.
Well, if you use the bare [Bindable] tag (as opposed to dispatching custom binding events), I believe the class will fire a PropertyChangeEvent of type PropertyChangeEventKind.UPDATE when any of the properties change. You could listen for that directly or, since that's a little ugly, have the class itself listen to itself for dispatch of this event (you can wire this in the constructor), and respond by dispatching a more externally appropriate (i.e., semantically meaningful) Event.
Correct answer. A+ response. Sticks the landing.