Solid color stroke Line
<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="300"> <Canvas Margin="5"> <!--scRGB solid color--> <Line X1="20" X2="280" Y1="240" Y2="240" Stroke="sc# 0.1,0.5,0.1" StrokeThickness="30"/> </Canvas> </Window>