wpf – 如何在XAML中绘制单独的圆圈?
发布时间:2020-12-14 05:37:55 所属栏目:Windows 来源:网络整理
导读:我怎样才能画出这样的圆圈,2个颜色分为2个部分.我在xaml编码 Ellipse Fill="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="300" Height="300" /Ellipse Path VerticalAlignment="Top" Fill="Brown" HorizontalAlignment="Left" Pa
我怎样才能画出这样的圆圈,2个颜色分为2个部分.我在xaml编码
<Ellipse Fill="White" HorizontalAlignment="Center" VerticalAlignment="Center" Width="300" Height="300"> </Ellipse> <Path VerticalAlignment="Top" Fill="Brown" HorizontalAlignment="Left"> <Path.Data> <PathGeometry> <PathFigure StartPoint="59,150"> <ArcSegment SweepDirection="Clockwise" Size="141,80" Point="341,150"/> </PathFigure> </PathGeometry> </Path.Data> </Path> 我试试了,上面的路径还没有完整的部分1.帮我试试吧! 解决方法
您还可以使用以下内容……
<Grid Height="200" Width="200" VerticalAlignment="Center"> <Ellipse Fill="#FFE1B631" /> <Path Data="M93.88768,0 C136.17198,0 172.32661,26.244247 186.95134,63.33252 L187.77536,65.5 0,65.5 0.82401276,63.33252 C15.44875,26.244247 51.603378,0 93.88768,0 z" Fill="#FFFD450F" Height="60.26" Stretch="Fill" VerticalAlignment="Top" Margin="8,1.31,8,0"/> </Grid> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- .net – 无法从Windows Service连接到SQL LocalDB,WPF应用程
- Win10 下不能正常使用Multilink解决办法
- powershell – bat文件为win server 2012安装.net 3.5框架
- 部署应用程序
- xaml – 在Windows Phone上设置ListView的GroupStyle.Panel
- windows-server-2003 – IIS无法提供某些文件扩展名
- 内存 – x64 Windows报告安装了64GB RAM的32GB RAM – 为什
- Windows – MongoDB与CouchDB(速度优化)
- 测试window安装的客户端
- 如何在Windows 8 Metro C#XAML应用程序中播放H.264 RTSP视频
推荐文章
站长推荐
热点阅读