WPF滑块问题 [英] WPF Slider problems

查看:273
本文介绍了WPF滑块问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了这种行为,在一个旧的Win32应用程序,在那里当你在滑块轨道(除拇指外)在某些位置按住鼠标,拇指移动到那个位置。

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.

在WPF什么似乎是发生的是拇指移动无论是SmallChange或LargeChange定义的距离。如果你坚持下去,它由延迟属性定义的一段时间后,将在由SmallChange / LargeChange一次。

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.

现在我想要得到原来的行为?因此,如果拇指在2,我按下鼠标向下接近10,我希望它跳到10最新最好的方式做到这一点提前?

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?

谢谢任何建议。

推荐答案

Slider.IsMoveToPointEnabled

Slider.IsMoveToPointEnabled

我不知道如何很多次我经历了所有的属性去找到它。

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

这篇关于WPF滑块问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆