Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

FillRule=Nonzero

<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>       <Polygon         Points="10,100 50,0 90,100 0,35 100,35"         Fill="Gold"         Stroke="Black"         StrokeThickness="3"         FillRule="Nonzero"         Canvas.Top="20">       </Polygon>   </Canvas> </Page>