There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
PropertyObserver: added handlers that pass property name & CollectionObserver
Since the PropertyChangedEventArgs already has the property name, and it is frequently (at least for me!) the case that I'm just passing the change notification from a model property to a ViewModel property of the same name. I added a second PropertyObserver.Register
method that takes a two parameter action (the second parameter is string). When invoked the property name is passed as the value of that parameter.
Also, I added a CollectionObserver class that does WeakEvent connection to INotifyCollectionChanged. It catches changes to the collection itself (unlike the Charles Petzold msdn article, which deals with changes to the items IN the collection.) The registrations
are specific by the enum NotifyCollectionChangedAction.
Code (and simple unit tests) attached.