C#自定义控件(圆形进度栏)Xamarin表单 [英] C# custom control (circle progress bar) Xamarin Forms
问题描述
我想知道使用Xamarin Forms创建此图像的相似内容的最佳方法:
I want to know the best way to create the similar thing of this image with Xamarin Forms:
我从来没有创造过这样的东西.我知道如何使用进度条,但不知道圆形进度条"
I never created anything like that. I know how to use Progress bar, but not a 'circle progress bar'
感谢您的帮助和任何提示.
Thank you for your help and for any tips.
如果您有一个插件/nuget可以这样做,那很酷,但是我想知道自己如何做.我从来没有做过这样的事情.
EDIT : If you have a plugin/nuget to do that, it's cool, but I would like to know how to do it myself. I never made something like this.
推荐答案
您可以使用自定义渲染器"来实现.
You can achieve this using Custom Renderer.
Xamarin的James Montemagno对于创建自定义圆形进度条有很好的指导.
Xamarin's James Montemagno have a good guide regarding creating custom circular progress bar.
https://devblogs. microsoft.com/xamarin/using-custom-controls-in-xamarin-forms-on-android/
Xamarin.Forms自定义渲染器的官方文档可以在以下位置找到 https://developer.xamarin.com/guides/xamarin-forms/custom -renderer/
Official Documentation on Xamarin.Forms Custom Renderers can be found at https://developer.xamarin.com/guides/xamarin-forms/custom-renderer/
这篇关于C#自定义控件(圆形进度栏)Xamarin表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!