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.
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- Show flyout using BottomAppBar
- CosmosDB emulator can't start since port is al
- How to print to stdout from Python script with .py
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.
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:
http://blogs.u2u.be/diederik/post/2013/11/14/Drawing-a-Circular-Gradient-in-Windows-Store-and-Windows-Phone-apps.aspx
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 :))