I have attempted to bind to a custom class I have created (i.e., WpfFlags
class), but have been unable to get the value to update with change, and was hoping somebody could help me. I know the binding is working because the PropertyChangedCallback
is being executed when the view loads, but executing PropertyChanged(this, new PropertyChangedEventArgs("GraphicFlags"))
is not causing the property to be updated. I know that the code is working because I did a workaround where I bind to the critical proptery in the class (int32
), and then recreate an instance of the WpfFlags
class in the PropertyChangedCallback
for this DependencyProperty
in View’s code behind . Then I change the value of the WpfFlags DependencyProperty
in the code behind, which then does create the desired result.
I attempted to inherit from a DependencyObject
for the WpfFlags
class, but that had no effect. I also have investigated the TypeDescriptor, but I do not think that is the answer.
Help would be very much appreciated.