WPF Slider problems

五迷三道 提交于 2019-12-12 08:14:59

问题


I have seen this behaviour, on an old win32 app, where when you hold down the mouse at some position on the slider track (other than on the thumb), the thumb moves to that position.

In WPF what seems to be happening is the thumb moves a distance defined either by SmallChange or LargeChange. If you keep holding, it moves by SmallChange/LargeChange again after some time as defined by the Delay property.

Now I want to get the old behaviour? So if the thumb is at 2 and I press the mouse down near 10 I want it to jump to 10. Whats the best way to do this?

Thanks in advance for any suggestions.


回答1:


Slider.IsMoveToPointEnabled

I dont know how many times I went through all the properties before finding it.



来源:https://stackoverflow.com/questions/612412/wpf-slider-problems

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!