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






<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>
WPF Setting Points For Polygon








16.71.Polygon
16.71.1.Setting Points for PolygonSetting Points for Polygon
16.71.2.FillRule='Nonzero' for PolygonFillRule='Nonzero' for Polygon
16.71.3.A PolygonA Polygon
16.71.4.Polygon FillRule=NonzeroPolygon FillRule=Nonzero
16.71.5.FillRule=NonzeroFillRule=Nonzero
16.71.6.FillRule=EvenOddFillRule=EvenOdd
16.71.7.Draws a triangle with a blue interiorDraws a triangle with a blue interior
16.71.8.Draws a triangle with a blue interior and a black outlineDraws a triangle with a blue interior and a black outline
16.71.9.A triangle with a black outline.A triangle with a black outline.
16.71.10.Set Stroke, StrokeThickness for PolygonSet Stroke, StrokeThickness for Polygon
16.71.11.Draws polygon with LinearGradientBrushDraws polygon with LinearGradientBrush
16.71.12.Shows a line that crosses more than one other lineShows a line that crosses more than one other line
16.71.13.Polygon Mouse down eventPolygon Mouse down event