Shows a line that crosses more than one other line : Polygon « Windows Presentation Foundation « VB.Net






Shows a line that crosses more than one other line

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>

   
    
    
    
    
    
  








Related examples in the same category

1.Setting Points for PolygonSetting Points for Polygon
2.FillRule="Nonzero" for PolygonFillRule=
3.A PolygonA Polygon
4.Polygon FillRule=NonzeroPolygon FillRule=Nonzero
5.FillRule=NonzeroFillRule=Nonzero
6.FillRule=EvenOddFillRule=EvenOdd
7.Draws a triangle with a blue interiorDraws a triangle with a blue interior
8.Draws a triangle with a blue interior and a black outlineDraws a triangle with a blue interior and a black outline
9.A triangle with a black outline.A triangle with a black outline.
10.Set Stroke, StrokeThickness for PolygonSet Stroke, StrokeThickness for Polygon
11.Draws polygon with LinearGradientBrushDraws polygon with LinearGradientBrush
12.Polygon Mouse down eventPolygon Mouse down event