A Polygon always closes the end points : Polygon « Windows Presentation Foundation « C# / C Sharp






A Polygon always closes the end points

A Polygon always closes the end points
     
<Window x:Class="WpfApplication1.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WpfApplication1" Height="352" Width="334" WindowStartupLocation="CenterScreen">
    <StackPanel>
    <Polygon Fill ="AliceBlue" StrokeThickness ="5" 
               Stroke ="Green" 
               Points ="40,10 70,80 10,50" />
    </StackPanel>
</Window>

   
    
    
    
    
  








Related examples in the same category

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