INotifyPropertyChanged, Collections and DependencyObject

Oct 30, 2014 at 10:10 AM
Please correct me if I am wrong, but I think that m:ui is only listening to events raised by NotifyPropertyChanged. If I implement INotifyPropertyChanged, an eventhandler does not appear to be created and consequently the user interface does not respond to changes in properties.

I think that I need to implement an interface to NotifyPropertyChanged as my viewmodel class needs to be derived from DependencyObject. The reason for this is that WPF only binds to a single instance of an ObservableCollection unless you specifically tell WPF to bind to unique instances of the collections and the only way of doing this (as far as I can tell) is to use a DependencyProperty on the collection.

As C# only permits inheritance from one base class, the only way of deriving multiple inheritance is through interfaces.

Comments (and solutions) appreciated :)