Displayable as INotifyPropertyChanged instead of DependencyObject

Jun 8, 2013 at 12:26 AM
Is there a reason that Displayable isn't a DependencyObject? I was trying to set Bindings on the DisplayName of the LinkGroups and noticed this. I tried switching Displayable and its subclasses over to using DependencyProperties and things seem to work, but I'm not sure if anything is looking for those particular NotifyPropertyChanges.

Would this be a bad change to make in the framework?

Thanks,
Coordinator
Jun 10, 2013 at 11:36 AM
Displayable is part of the ViewModel, not the View. There are a number of reasons not to derive from DependencyObject. Among those; DependencyObject not serializable, not lightweight and it can only be accessed on the thread it was created on.

See also this discussion on channel9