Non-zero fill rule with more complex shape with Polygon : Polygon « Windows Presentation Foundation « C# / C Sharp






Non-zero fill rule with more complex shape with Polygon

Non-zero fill rule with more complex shape with Polygon
             

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Stretch">


<Polygon Fill="Orange" Stroke="Blue" StrokeThickness="2" FillRule="Nonzero"
  Points="1,1 600,100 60,25 200,250 200,400 40,400 400,180 50,180 50,50 100,50" />


</Page>

   
    
    
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Polyline by PointsPolyline by Points
2.A Polygon always closes the end pointsA Polygon always closes the end points
3.Specifying points the long way with Polygon.Points tag and PointSpecifying points the long way with Polygon.Points tag and Point
4.Draw figure with "EvenOdd" FillRuleDraw figure with
5.Draw figure with "NonZero" FillRule
6.Draw second figure with "NonZero" FillRuleDraw second figure with
7.Polygon Stretch= UniformToFillPolygon Stretch= UniformToFill
8.Polygon Stretch="UniformPolygon Stretch=
9.Star PolygonStar Polygon
10.Fill Polygon with RadialGradientBrushFill Polygon with RadialGradientBrush
11.Polygon with FillPolygon with Fill
12.Polygon Stroke color and ThicknessPolygon Stroke color and Thickness
13.Polygon Along with CanvasPolygon Along with Canvas
14.Polygon Stretch=FillPolygon Stretch=Fill
15.Polygon Stretch=NonePolygon Stretch=None
16.Star.xamlStar.xaml
17.Difference between EvenOdd FillRule and NonZero FillRule
18.Draws another triangle with a blue interior with PolygonDraws another triangle with a blue interior with Polygon
19.Polygon Mouse down eventPolygon Mouse down event