How to bind the slider with the arrow key inputs?
-
26-10-2019 - |
Question
I have a slider control and all I wanted is to move the slider thumb with the arrow key inputs. Right now, I could see it moves with mouse inputs and PageUp/PageDown keys. But nothing happens with the arrow keys. How can I change this behaviour in xaml?
Any help anybody could produce would highly appreciated.
Thanks
Ratheesh
Solution
The default SmallChange value for a RangeBase is 0.1. Since you are bound to an integer property I'm guessing that is getting rounded/truncated. Try setting the SmallChange to 1 and the LargeChange to something else (e.g. 10).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow