如何创建圆形滑块 WPF

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14397498/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 07:06:29  来源:igfitidea点击:

How to create circular Slider WPF

wpfuser-controlswpf-controls

提问by Sonhja

I was wondering how to create a scroll that looks something similar to this:

我想知道如何创建一个看起来与此类似的卷轴:

enter image description here

在此处输入图片说明

I'm really interested on being able to build one like this, and I'm not sure on what elemnt is this one and how to implement it. I've been searching, but I can't find any information... So any tutorial, guide or clue will be really appreciated.

我对能够构建这样的一个非常感兴趣,我不确定这是什么元素以及如何实现它。我一直在搜索,但找不到任何信息......所以任何教程、指南或线索将不胜感激。



回答by khellang

Take a look at "A Knob Slider Control". It doesn't look as nice as your example, but that's just a matter of styling. Maybe you could use it as a starting point?

看看“旋钮滑块控件”。它看起来不像您的示例那么好,但这只是样式问题。也许你可以用它作为起点?

回答by Matthias

See the tutorialof Charles Petzold. It gives a nice introduction how to create curved sliders and scrollbars.

请参阅Charles Petzold的教程。它很好地介绍了如何创建弯曲的滑块和滚动条。