在 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" />
最佳答案
关于wpf - 编码 WPF 路径数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5196536/