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.
Asked
Active
Viewed 3,374 times
3 Answers
6
If you want something like this:
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 :))

Arek Kubiak
- 761
- 3
- 8
-
Yes, i wanted to achieve something like this exactly, thanks! – Jano Sep 25 '15 at 10:21
-
@Arek I know that this is for Universal Apps,but can I use this in Windows Phone 8 apps? – Kinjan Bhavsar Feb 23 '16 at 07:18
-
exactly what I was looking for. Thanks Arek! – Tobias Koller Feb 01 '17 at 07:08
-
is there a way to fill the Content of the circle with another Color? – Tobias Koller Feb 02 '17 at 07:19
1
If you're looking to create complex shapes in XAML, you'll probably want to take a look at the windows.ui.xaml.shapes.path class. It can use a complex object model to specify bezier curves which should be able to do what you want.

Andrew Pilley
- 824
- 6
- 9
0
If you are trying to create a an arc segment such as one used in a gauge control, It appears Diederik Krols has your answer:

Stuart Smith
- 1,931
- 15
- 26