Updating a WPF Control Whenever the DataContext Changes
I’ve been writing customised versions of the built-in WPF controls for a specific project I’m working on that isolate specific requirements for the controls in one place rather than having that declared in the XAML. However, one of the obstacles to overcome was receiving a notification whenever the DataContext changes and, more importantly, is initial set, so I can set up the controls bindings. In the full example included below this includes fetching the list of ComboBox items from an enumeration which is the data type of the model item being bound to. Read →