Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Set line Stroke and StrokeThickness

<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="250" Width="500">     <StackPanel Orientation="Horizontal">         <StackPanel Margin="5">             <TextBlock FontSize="14" Text="Lines in a StackPanel:"/>             <Line X1="2.5cm" Y1="-1.25cm" X2="3.5cm" Y2="1.5cm" Stroke="Black" StrokeThickness=".1cm"/>         </StackPanel>     </StackPanel> </Window>