[FrmLine.xaml]



<UserControl x:Class="RiaShape.FrmLine"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

    mc:Ignorable="d"

    d:DesignHeight="300" d:DesignWidth="400">

   

    <Canvas Background="White">

        <Line

            X1="100" Y1="100"

            X2="200" Y2="200"

            Stroke="Black" StrokeThickness="5"></Line>

        <Line

            X1="200" Y1="100"

            X2="100" Y2="200"

            Stroke="Red" StrokeThickness="5"

            StrokeDashArray="5, 2"

            StrokeDashCap="Round"

            StrokeStartLineCap="Triangle"

            StrokeEndLineCap="Square"></Line>

    </Canvas>

</UserControl>

 

 



-------------------------------------------------------------------------------------

 


[실행결과]









Posted by holland14
: