Mega Code Archive

 
Categories / VB.Net / WPF
 

Sample Arc

<Window x:Class="SampleArc.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="SampleArc" Height="300" Width="300">     <Grid>       <Path Stroke="Black" Fill="Gray" StrokeThickness="2" Margin="-107,39,-67,-13">         <Path.Data>           <PathGeometry>             <PathGeometry.Figures>               <PathFigureCollection>                 <PathFigure StartPoint="200,200">                   <PathFigure.Segments>                     <PathSegmentCollection>                       <ArcSegment                            Point="300,200"                           Size="200,50" RotationAngle="90"                            IsLargeArc="False" SweepDirection="Clockwise"  />                     </PathSegmentCollection>                   </PathFigure.Segments>                 </PathFigure>               </PathFigureCollection>             </PathGeometry.Figures>           </PathGeometry>         </Path.Data>       </Path>     </Grid> </Window>