Thanks for providing this framework. I had previously been using MVVM Foundation, but decided to make the jump to this one because it offers a few additional features which I think I'll need.
In my ViewModels, I had been using PropertyObserver to listen for PropertyChanged events on other VMs. Since MVVM Light does not seem to have a counterpart to this, what is the recommended way to achieve this?
Here is an example scenario: Suppose I have a hierarchy or relatives; Parent, Child, Grandchild. I would like the Parent ViewModel to expose properties called "ChildCount" and "GrandchildCount" and fire PropertyChanged events
for the UI to pick up.
ChildCount is easy because Parent fires a PropertyChanged event whenever a Child is added/removed. It gets complicated because I want Parent to fire a "GrandchildCount" PropertyChanged event whenever one of its Children adds/removes a Grandchild.
Right now the only way I can see to do this is in Parent, manually implement an IEventListener for each Child's ChildCount PropertyChanged event. This is conceptually what Josh Smith's PropertyObserver does.
I made a sample program demonstrating this:
It would make my day if someone can explain that I'm approaching this the wrong way, and there is actually a much easier way to do it.