如何在通用Windows应用程序中绘制圆弧 [英] How to draw an arc in universal windows app

查看:132
本文介绍了如何在通用Windows应用程序中绘制圆弧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通用Windows应用程序中需要一个弧(圆弧段),但我只是想不出如何制作它。仅提供圆形和矩形形状。我的目标是创建一个显示给定百分比,线50%66%等的弧。

I need an arc (circle segment) in my universal windows application, but i just cant figure it out how to make it. There are only circle and rectangle shapes available. My goal is to create an arc that is showing the given percent, line 50% 66% etc.

推荐答案

像这样:

检查我的解决方案(在Windows 8.1上进行了测试和Windows 10 UWP):

Check my solution (tested on Windows 8.1 and Windows 10 UWP):

https://github.com/arek-kubiak/ArcControl/tree/master

我希望它会对您有所帮助:)
注意,控件会自动将高度和宽度调整为半径和厚度。 (如果您有一些问题,我可以提供帮助:))

I hope it will be helpful for you :) Be careful, control automatically adjusts the height and width to the radius and thickness. (if you will have some problems i can help :))

这篇关于如何在通用Windows应用程序中绘制圆弧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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