WPF,请问这个几何图形如何设置线条的粗细

答复答复 2013-07-19 06:13:34

<Canvas Height="295" Name="canvas1" Width="418">
<Path Stroke="Blue" >
<Path.Data>
<PathGeometry>
<PathFigure IsClosed="True" StartPoint="10,100">
<LineSegment Point="100,100" />
<LineSegment Point="100,50" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
</Canvas>





请问这个几何图形如何设置线条的粗细?
...全文
615 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
全栈极简 2013-07-19
  • 打赏
  • 举报
回复
全栈极简 2013-07-19
  • 打赏
  • 举报
回复
下面红色标记了的就是你所要的。 <Canvas Height="295" Name="canvas1" Width="418"> <Path Stroke="Blue" StrokeThickness="5"> <Path.Data> <PathGeometry> <PathFigure IsClosed="True" StartPoint="10,100"> <LineSegment Point="100,100"/> <LineSegment Point="100,50"/> </PathFigure> </PathGeometry> </Path.Data> </Path> </Canvas>

111,112

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧