Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Closed PathFigure

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.RectangleExample"     WindowTitle="Example">      <Canvas>      <Path Stroke="Blue">       <Path.Data>         <PathGeometry>           <PathFigure IsClosed="True" StartPoint="10,100">             <LineSegment Point="100,100" />             <LineSegment Point="100,50" />           </PathFigure>         </PathGeometry>       </Path.Data>     </Path>   </Canvas> </Page>