Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Jumpy Slider control behavior

$
0
0

Hello all. I have a Slider control that is using two way data binding to its Value property that's showing some strange behavior. I have the following properties set for the control:

IsSnapToTickEnabled="True" Value="{Binding SourceValue, Mode=TwoWay}" Maximum="360" Minimum="0" SmallChange="10" TickFrequency="10" LargeChange="20"

Every time the "Value" property changes I perform some moderately time-consuming processing. When I alter the Slider control by clicking on the thumb and holding down the arrow key on the keyboard everything happens smoothly and in real-time. However, if I drag the thumb with the mouse the thumb becomes erratic and appears to frequently bounce/jerk backwards before resuming motion in the direction of the mouse dragging. This results in jittery "Value" changes which result - of course - in jittery processing results that I display to the user. What is causing this poor behavior and how can I correct it? Thank you all in advance.

-L




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>