Introducing Screen type into ViewModel inheritance hierarchy

Dec 3, 2010 at 4:34 PM

Hi,

I'm trying to introduce the Caliburn Screen type into our existing ViewModel inheritance hierarchy as the base type. Our existing base type derives from DependencyObject (which isn't necessarily a good idea for ViewModels), but with that inheritance path removed, none of our reusable UserControl's which extensively use dependancy properties work anymore.  The values of the dependency properties are not updated when the view containing the UserControl is displayed.  These DP's are bound to properties on the viewmodel which are just INPC properties.  I'm not quite sure why this behaviour is happening?  Has anyone else experienced this?  The only solution I can see at the moment is not use Screen, and create my own type which derives from DependencyObject.

Dec 6, 2010 at 2:02 PM

Ok, disregard, I found the issue - the PropertyChanged event was being obscured by our own VM base type...