【发布时间】:2015-04-07 11:18:17
【问题描述】:
您好,我使用以下代码在 WPF 中创建路径。
<Path Stroke="White" StrokeThickness="1" Stretch="Fill">
<Path.Data>
<PathGeometry>
<PathGeometry.Figures>
<PathFigureCollection>
<PathFigure StartPoint="0,0">
<PathFigure.Segments>
<PathSegmentCollection>
<QuadraticBezierSegment Point1="200,200" Point2="0,400" />
</PathSegmentCollection>
</PathFigure.Segments>
</PathFigure>
</PathFigureCollection>
</PathGeometry.Figures>
</PathGeometry>
</Path.Data>
</Path>
它工作正常。现在我需要的是在路径之间有一个图像。这样图像就会位于曲线的中心。你能帮忙看看怎么做吗?
【问题讨论】: