Mega Code Archive

 
Categories / Silverlight / Shapes
 

Use BezierSegment and ArcSegment as the PathFigure

<UserControl x:Class='SilverlightApplication3.MainPage'     xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'      xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'     xmlns:d='http://schemas.microsoft.com/expression/blend/2008'      xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006'      mc:Ignorable='d'      d:DesignWidth='640'      d:DesignHeight='480'>  <Path Stroke="Black" Grid.Row="2" Grid.Column="2" Margin="28.046,8,-20.046,0">       <Path.Data>         <PathGeometry>           <PathFigure StartPoint="20,20">             <BezierSegment Point1="10,40" Point2="200,70" />             <ArcSegment Point="100,10" Size="200,150" RotationAngle="25" IsLargeArc="False" SweepDirection="Counterclockwise"/>           </PathFigure>         </PathGeometry>       </Path.Data>     </Path> </UserControl>