TrackBar 控件充当具有多个拇指的范围选择器
我正在寻找一个与 TrackBar 控件类似的控件,但具有三个拇指,一个用于选择值,另外两个用于选择同一控件上的最小值和最大值。
我在谷歌上搜索了这个,我发现很多人都在要求同样的事情(或类似的范围控制),但我没有找到任何显示如何执行此操作的资源或代码示例。
有谁知道我是否可以找到这方面的资源?如果没有..我将如何创建这样的控件?
非常感谢您向我提供的任何信息或建议。
I am after a control which works similarly to a TrackBar control but has three thumbs, one for selecting a value and two others for selecting the minimum and maximum values on the same control.
I have searched Google for this and I have found a lot of people asking for the same thing (or similar range control) but I haven't found any resources showing how to do this or examples of code.
Does anyone know if I can find a resource for this? If not.. How would I go about creating a control like this?
Many thanks for any information or advice you can provide me with.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它将需要一个带有代码的广泛答案..所以我只会给你一个方法。
您需要创建一个自定义控件来执行此操作。您可以继承轨迹栏控件并将其扩展以再制作两个 Thumb,然后附加一个拖动事件来进行拖动。在拖动事件上设置轨迹栏的最大值和最小值属性。
首先尝试这种方法..如果您遇到任何问题,请在此处询问具体答案。
It will need a extensive answer with code.. so i will only give you an approach.
You will need to make an custom control to do this.. you can inherit the trackbar control and Extend it to make two more Thumbs and then attach a drag event to make dragging. On Drag Event Set the Trackbar's Maximum and Minimum properties.
Fisrt try this approach.. if you face any problem ask it here for that specific answer.