【发布时间】:2011-03-04 16:29:10
【问题描述】:
在 WPF 中,是否可以将其编码为具有 Data 属性的单个 Path 标记?
<Path Stroke="White" StrokeThickness="2">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="7,32">
<ArcSegment Point="7,18" Size="200,50" RotationAngle="0" IsLargeArc="False" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
类似这样的东西:(只是这是一个完全错误的形状)
<Path Stroke="DarkGoldenRod" StrokeThickness="3"
Data="M 100,200 C 100,25 400,350 400,175 H 280" />
【问题讨论】: