title: Win 10 UAP - Drawing a Line to the Canvas
body: <p>I'm playing around with the Win 10 UAP and trying to draw a Line to the Canvas in C# using the below code but doesn't work.</p>
  
  <pre><code>var line = new Line();
  line.Stroke = new SolidColorBrush(Colors.LightSteelBlue);
  line.StrokeThickness = 3;
  line.Width = 50;
  
  line.X1 = 0;
  line.Y1 = 0;
  line.X2 = 50;
  line.Y2 = 0;
  
  Canvas.SetTop(line, 50);
  Canvas.SetLeft(line, 50);
  TheCanvas.Children.Add(line);
  </code></pre>
  
  <p>Can someone please point me in the direction where I have gone wrong?</p>
  
  <p>Many thanks,
  Tarran</p>