Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Draws several Line elements within a Canvas

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.RectangleExample"     WindowTitle="Rectangle Example">   <Canvas>             <Line             X1="10" Y1="10"             X2="50" Y2="50"             Stroke="Black"             StrokeThickness="4" />           <Line             X1="10" Y1="10"             X2="50" Y2="50"             Stroke="Black"             StrokeThickness="4"             Canvas.Left="100" />   </Canvas> </Page>