win10 UWP 圆形等待
最后更新于:2022-04-01 20:23:25
看到一个圆形好像微软ProgressRing
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_57076371ac895.gif)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/0_1321962945yCXF.gif)
我们可以用自定义控件
按ctrl+shift+a
用户控件
我们可以用Rectangle做圆形边
只要Rectangle RadiusX>0圆角
因为每个Rectangle 都一样,我们可以资源
~~~
~~~
设置Rectangle 在中间
资源设置需要选TargetType
我们是Rectangle
~~~
~~~
因为不知道这个要叫什么,就用右击资源
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_57076371beab9.png)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/20161291187294.png)
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_57076371d4af6.png)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/20161291182112.png)
vs默认RectangleStyle1
每个项需要
~~~
~~~
设置中间
~~~
~~~
看起来Rectangle很大
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_57076371e8e21.png)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/201612911107238.png)
把Height为20
~~~
~~~
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_57076372028e0.png)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/201612911111820.png)
全部资源
~~~
~~~
我们做10个Rectangle
使用RectangleStyle1 在Rectangle `style="{StaticResource RectangleStyle1}"`
中间是白色比较好
~~~
~~~
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_57076372137c1.png)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/201612911134992.png)
每个Rectangle 一个名字
我们想要xaml动,可以
~~~
~~~
Forever一直动
使用控件
~~~
~~~
[![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_5707637223123.png)](https://github.com/lindexi/lindexi_gd/blob/master/%E5%8D%9A%E5%AE%A2/image/201612911161755.png)
全部
~~~
round.xaml
~~~
~~~
MainPage
~~~
代码:[https://github.com/lindexi/lindexi_gd/tree/master/roundload](https://github.com/lindexi/lindexi_gd/tree/master/roundload)
参考:[http://blog.csdn.net/qqamoon/article/details/7001693](http://blog.csdn.net/qqamoon/article/details/7001693)
本文:http://blog.csdn.net/lindexi_gd
[](http://blog.csdn.net/lindexi_gd/article/details/50606261#)[](http://blog.csdn.net/lindexi_gd/article/details/50606261# "分享到QQ空间")[](http://blog.csdn.net/lindexi_gd/article/details/50606261# "分享到新浪微博")[](http://blog.csdn.net/lindexi_gd/article/details/50606261# "分享到腾讯微博")[](http://blog.csdn.net/lindexi_gd/article/details/50606261# "分享到人人网")[](http://blog.csdn.net/lindexi_gd/article/details/50606261# "分享到微信")
';