Set Stroke, StrokeThickness for Polygon : Polygon « Windows Presentation Foundation « VB.Net






Set Stroke, StrokeThickness for Polygon

Set Stroke, StrokeThickness for Polygon
     

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="350" Width="300">
    <UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Polygon Stroke="Black" StrokeThickness="3" Margin="5" Points="40,10 70,80 10,80"/>
        <Polygon Stroke="Black" StrokeThickness="3" Margin="5" Points="210,0 50,10 50,50 180,160 60,80 0,20"/>

    </UniformGrid>
</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.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