<StackPanel x:Name="sector" Width="200" Height="200" Canvas.Left="108" Canvas.Top="109">
<Path x:Name="within1" Stroke="Black" Fill="Green" StrokeThickness="1" Width="100" >
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="1,24" IsClosed="True">
<LineSegment Point="35,58"/>
<ArcSegment Size="55,20" Point="59,48" SweepDirection="Clockwise"/>
<LineSegment Point="59,1"/>
<ArcSegment Size="80,80" Point="1,24" SweepDirection="Counterclockwise"/>
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
</StackPanel>
思路是把这一个扇形,当作一个控件,然后通过C#后台 制作一个方法 来遍历这个扇形,达到环绕成一个圈的效果。同时可以在每个扇叶上面,可以显示数字和绑定信息。