StrokeDashArray>: 4,2 /StrokeDashOffset: 1 : Stroke « Windows Presentation Foundation « C# / C Sharp






StrokeDashArray>: 4,2 /StrokeDashOffset: 1

StrokeDashArray>: 4,2 /StrokeDashOffset: 1
   
<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
    <Rectangle Grid.Row="3" Grid.Column="1" Width="150" Height="150"
               StrokeDashArray="4 2" StrokeDashOffset="1"
               Stroke="Black" StrokeThickness="3" Fill="Blue">
    </Rectangle>


</Window>

   
    
    
  








Related examples in the same category

1.StrokeDashArray 4,2 / StrokeDashOffset: 0StrokeDashArray 4,2 / StrokeDashOffset: 0
2.StrokeDashArray: 4,2 /StrokeDashOffset: 2StrokeDashArray: 4,2 /StrokeDashOffset: 2
3.StrokeDashArray: 4,1,4,3 /StrokeDashOffset: 1StrokeDashArray: 4,1,4,3 /StrokeDashOffset: 1
4.StrokeDashArray: 1,4,1,2 / StrokeDashOffset: 1StrokeDashArray: 1,4,1,2 / StrokeDashOffset: 1
5.StrokeDashArray: 1 / StrokeDashOffset: 1StrokeDashArray: 1 / StrokeDashOffset: 1
6.PenLineJoin.BevelPenLineJoin.Bevel
7.PenLineJoin.RoundPenLineJoin.Round
8.PenLineJoin.MiterPenLineJoin.Miter
9.PenLineCap.FlatPenLineCap.Flat
10.PenLineCap.SquarePenLineCap.Square
11.PenLineCap.RoundPenLineCap.Round
12.PenLineCap.TrianglePenLineCap.Triangle
13.StrokeStartLineCap=Round, StrokeEndLineCap=RoundStrokeStartLineCap=Round, StrokeEndLineCap=Round
14.Dotted PathDotted Path