将填充应用于椭圆控制的段 [英] Applying fill to segment of Ellipse control
本文介绍了将填充应用于椭圆控制的段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我一直试图找到一种方法将填充应用到XAML中的椭圆段。
这可能或者必须手动绘制一个新的形状并叠加到另一个上以获得所需的效果吗?
理想情况下我我想说从一个角度到另一个角度多次应用一定的填充。
所需的输出看起来像饼图。
先谢谢大家。
L
解决方案
请参阅我对该问题的评论。我仍然认为你需要一个椭圆的扇区,而不是段。
但是,下面显示的方法可以让你创建扇区和段,以及其他东西,因为它实际上是使用路径和椭圆拱,而不是Ellipse
对象:
http://stackoverflow.com/questions/6744350/how-can-i-draw -a-circle-with-the-ellipse-class [ ^ ]。
-SA
Hello all,
I have been trying to find a way to apply a fill to a segment of an ellipse in XAML.
Is this possible or will have to manually draw a new shape and overlay that onto another to get the desired effect?
Ideally I would like to say from one angle to another apply a certain fill multiple times.
The desired output would look like a pie chart.
Thanks in advance everyone.
L
解决方案
Please see my comment to the question. I still think you will need a sector of an ellipse, not segment.
However, the method shown below can allow you to create both sector and segment, as well as something else, as it is actually uses a path and an elliptical arch, not theEllipse
object:
http://stackoverflow.com/questions/6744350/how-can-i-draw-a-circle-sector-with-the-ellipse-class[^].
—SA
这篇关于将填充应用于椭圆控制的段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文