Round StrokeDashCap Polyline


   
     

<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="300" Width="400">
    <UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Polyline Margin="10" Stroke="Black" StrokeThickness="5" StrokeDashArray="5 2 2 2" StrokeDashCap="Round" Points="1,0 100,0 100,100 0,100 0,20 80,20 80,80 210,80, 120,40 60,40 60,60 140,60" />
    </UniformGrid>
</Window>

   
    
    
    
    
     


Set StrokeDashArray, StrokeDashCap for Polyline


   
     

<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="300" Width="400">
    <UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Polyline Margin="10" Stroke="Red" StrokeThickness="5" StrokeDashArray="2" StrokeDashCap="Triangle" Points="10,0 100,0 100,100 10,100 0,20 80,20 180,80 20,80, 20,410 60,40 60,60 40,60" />
    </UniformGrid>
</Window>

   
    
    
    
    
     


Set StrokeThickness for Polyline


   
     

<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="300" Width="400">
    <UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Polyline Margin="10" Stroke="Navy" StrokeThickness="8" StrokeStartLineCap="Triangle" StrokeEndLineCap="Triangle" Points="10,10 100,10 100,10 0,10 0,120 180,210 180,180 210,80, 20,40 60,40 160,60 40,60" />
    </UniformGrid>
</Window>

   
    
    
    
    
     


Set Margin and Stroke for Polyline


   
     

<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="300" Width="400">
    <UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Polyline Margin="10" Stroke="Black" StrokeThickness="5" Points="110,0 120,0 100,130 0,300 0,20 180,120 80,180 20,180, 210,410 610,410 610,610 40,60" />
    </UniformGrid>
</Window>

   
    
    
    
    
     


Add Polyline to UniformGrid


   
     

<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="300" Width="400">
    <UniformGrid Columns="3" HorizontalAlignment="Center" VerticalAlignment="Center">
        <Polyline Margin="10" Stroke="Black" StrokeThickness="5" Points="110,0 120,0 100,130 0,300 0,20 180,120 80,180 20,180, 210,410 610,410 610,610 40,60" />
    </UniformGrid>
</Window>

   
    
    
    
    
     


XAML Button with Polyline and Label


   
     

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        Title="Design XAML Button"
        SizeToContent="WidthAndHeight"
        ResizeMode="CanMinimize">
    <Button HorizontalAlignment="Center"
            VerticalAlignment="Center" 
            Margin="24">
        <StackPanel>
            <Polyline Stroke="Black"
                      Points="0 10,10 0,20 10,30 0,40 10,50 0,
                        60 10,70 0,80 10,90 0,100 10" />

            <Image Margin="0,10,0,0"
                   Source="c:image.ICO" 
                   Stretch="None" />

            <Label HorizontalAlignment="Center">
                _Read
            </Label>

            <Polyline Stroke="Black"
                      Points="0 0,10 10,20 0,30 10,40 0,50 10,
                        60 0,70 10,80 0,90 10,100 0" />
        </StackPanel>
    </Button>
</Window>