A Polygon always closes the end points

image_pdfimage_print


   
     
<Window x:Class="WpfApplication1.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WpfApplication1" Height="352" Width="334" WindowStartupLocation="CenterScreen">
    <StackPanel>
    <Polygon Fill ="AliceBlue" StrokeThickness ="5" 
               Stroke ="Green" 
               Points ="40,10 70,80 10,50" />
    </StackPanel>
</Window>

   
    
    
    
    
     


Multiple Subpaths

image_pdfimage_print


   
   


<Window  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="SDKSample.SampleViewer"
    Title="  Examples" >

   <Canvas> 

        <Path Stroke="Black" StrokeThickness="1" Data="M 10,100 L 100,100 100,50 Z M 10,10 100,10 100,40 Z" />


   </Canvas> 


</Window>