Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Shows a line that crosses more than one other line

<Window x: Class="PolygonFillRule"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   Title="PolygonFillRule" Height="600" Width="300">   <Grid>     <StackPanel Margin="10">       <TextBlock Text="FileRule = EvenOdd:" Margin="0 0 0 5" />       <Polygon Stroke="Black" Fill="LightGray" FillRule="EvenOdd"         Points="0 0,0 150,100 150,100 50, 50 50,50 100,150 100,150 0" />     </StackPanel>   </Grid> </Window>