Posted
on Dec 21, 2011
(permalink)
Yes, it would fit my scenario - if it worked... In your example, if you bind the view model to the usercontrol (this.DataContext = new SliderViewModel()...), then add a textblock to the grid:
<TextBox Text="{Binding VmValue}" Margin="0,50,0,0"></TextBox>
The textblock's text will update constantly as you move the slider (whether IsDeferredDraggingEnabled is true or false). Which means the value (VmValue) is getting updated constantly. (or you can just put a break point in the VmValue property and see that it updates as soon as you start to move the slider)
The IsDeferredDraggingEnabled property only seems to affect when the ValueChanged event is fired. It does not affect when the databound value is updated.
I don't know if its considered a bug or not - but regardless, I'd like to know if there is a workaround.
Thanks,
Justin