2013-07-17 29 views

回答

1

可以將三個arc segments這樣的:

<Path Stroke="DarkGreen" StrokeThickness="2" 
Data="M 50,0 A 100,100 0 0 0 0,86.6 A 100,100 0 0 0 100,86.6 A 100,100 0 0 0 50,0 Z"/> 

上述路徑放置半徑100的三節段在邊長100的等邊三角形的是三角形的高度爲86.6的三個角部。

寫上述路徑的更詳細的方法是這樣的:

<Path Stroke="DarkGreen" StrokeThickness="2"> 
    <Path.Data> 
     <PathGeometry> 
      <PathFigure StartPoint="50,0" IsClosed="True"> 
       <ArcSegment Size="100,100" Point="0,86.6"/> 
       <ArcSegment Size="100,100" Point="100,86.6"/> 
       <ArcSegment Size="100,100" Point="50,0"/> 
      </PathFigure> 
     </PathGeometry> 
    </Path.Data> 
</Path>