StrokeStartLineCap=Round, StrokeEndLineCap=Round : Stroke « Windows Presentation Foundation « C# / C Sharp






StrokeStartLineCap=Round, StrokeEndLineCap=Round

StrokeStartLineCap=Round, StrokeEndLineCap=Round
             

<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Use ListBox" Height="300" Width="300">

    <Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
    
      <Line X1="75" Y1="160" X2="175" Y2="150" 
            StrokeStartLineCap="Round" StrokeEndLineCap="Round" Stroke="Black" StrokeThickness="10"/>

    </Canvas>

</Window>

   
    
    
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

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