ArcSegment 这将是一个很好的起点.
而这里是如何在代码中使用它一个很好的例子.
由于原始链接已失效,以下是我绘制弧线的方法:
<Canvas>
<Path Stroke="Gray">
<Path.Data>
<PathGeometry>
<PathGeometry.Figures>
<PathFigureCollection>
<PathFigure StartPoint="0,20">
<PathFigure.Segments>
<PathSegmentCollection>
<ArcSegment Size="20, 20"
IsLargeArc="True"
SweepDirection="CounterClockwise"
Point="40,20" />
</PathSegmentCollection>
</PathFigure.Segments>
</PathFigure>
</PathFigureCollection>
</PathGeometry.Figures>
</PathGeometry>
</Path.Data>
</Path>
</Canvas>
Run Code Online (Sandbox Code Playgroud)
这会产生以下图像(为某些变量添加了标记)
上面的 XAML 是此处 XAML 的修改版本:
https://www.c-sharpcorner.com/UploadFile/mahesh/drawing-arc-using-arcsegment-in-xaml/