Dash Pattern "2 1" : Stroke « Windows Presentation Foundation « VB.Net






Dash Pattern "2 1"

Dash Pattern
     
<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>
    <Polyline Stroke="Blue" StrokeThickness="10" Grid.Row="1" 
               StrokeDashArray="2 1" SnapsToDevicePixels="True"
      Points="10,30 60,0 90,40 120,10 350,10" >
    </Polyline>
    <TextBlock Grid.Row="1" Grid.Column="1" VerticalAlignment="Center">Dash Pattern "2 1"</TextBlock>

  </Canvas>
</Page>

   
    
    
    
    
  








Related examples in the same category

1.Dash Pattern "1 2"Dash Pattern
2.Dash Pattern "5 0.2 3 0.2"Dash Pattern
3.Uneven Dash Pattern "2 0.5 2"Uneven Dash Pattern
4.Dash Pattern with Rounded CapsDash Pattern with Rounded Caps
5.Bevel Line JoinBevel Line Join
6.Round Line JoinRound Line Join
7.Miter Line JoinMiter Line Join
8.Miter Line Join With Limit of 3Miter Line Join With Limit of 3
9.Flat Line CapFlat Line Cap
10.Square Line CapSquare Line Cap
11.Round Line CapRound Line Cap
12.Triangle Line CapTriangle Line Cap
13.StrokeLineJoin=BevelStrokeLineJoin=Bevel
14.StrokeLineJoin=RoundStrokeLineJoin=Round
15.StrokeStartLineCap=FlatStrokeStartLineCap=Flat
16.StrokeEndLineCap=SquareStrokeEndLineCap=Square
17.StrokeStartLineCap=SquareStrokeStartLineCap=Square
18.StrokeStartLineCap=RoundStrokeStartLineCap=Round
19.StrokeStartLineCap=TriangleStrokeStartLineCap=Triangle
20.Paints a rectangle with a checkered pattern 2
21.Solid color stroke LineSolid color stroke Line
22.Stroke with semi-transparent colorStroke with semi-transparent color