开发者

How to bind the slider with the arrow key inputs?

开发者 https://www.devze.com 2023-03-23 10:38 出处:网络
I have a 开发者_StackOverflowslider 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 noth

I have a 开发者_StackOverflowslider 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


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消