Problem with DataBinding on Control's Value?

May 29, 2012 at 3:51 PM


I have a property in the ViewModel bound to the UpDownConrtrol's Value property.

<updown:UpDownControl x:Name="updown" 
MaxValue="{Binding UpDownMax, Mode=TwoWay}"
Value="{Binding UpDownValue, Mode=TwoWay}" Increment="1" />

When I click on an arrow on the control, the UpDownValue property is updated, as expected.

When I set the UpDownValue property programmatically, the control is not updated.

What am I doing wrong?

(Similarly, if the control is at UpDownMax, and I increase UpDownMax programmatically, the control's Up arrow is not enabled, reflecting the new value of MaxValue.)

Thanks for any hints...