Setting Points for Polygon : Polygon « Windows Presentation Foundation « VB.Net






Setting Points for Polygon

Setting Points for Polygon
     

<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 Stroke="Blue" StrokeThickness="1" Fill="Yellow" Canvas.Left="10"
        Points="15,200 68,70 110,200 0,125 135,125" >
      </Polygon>

  </Canvas>
</Page>

   
    
    
    
    
  








Related examples in the same category

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