public static readonly Dependency Property Animate Column Width Property = Dependency Property.Register("Animate Column Width Property", typeof(double), typeof(Main Window), new Property Metadata(0.0)); public double Animate Column Width As I understand it, as the column width is bound to this property, whenever I update the property the column width should also update.But the value in the UI is not updating as expected. I've seen other have this issue on occasion and best I can tell I have duplicated several variations of their fixes but have not yet gotten this to work.Recently I struggled on my user control trying to make the dependency property be updated when I change the source of the binding.
The line below works for the Text Box DP Text, where Cell No is a property of a class which derives from INotify Propertychanged.
What am I doing wrong as the width does not update when I change the property?
I am also trying to update it via an animation which also doesnt work.
I know my bound data is sending proper INotify events because I can bind other controls to the data like textblocks and see its content change as the objects property changes, but my user control does not seem to be receiving the event at all. The WPF Framework will not call them, it will use the dependency property directly.
Never do anything in those getters and setters that you need to get done.