title: Drawing line on a canvas in WPF MVVM doesn't work
body: <p>I have this xaml:</p>
  
  <pre><code>&lt;Canvas cal:View.Context="DrawCanvas"&gt;
      &lt;!--&lt;Line  X1="1" Y1="1" X2="400" Y2="400" Stroke="Black" StrokeThickness="20" IsHitTestVisible="False"/&gt;--&gt;
  &lt;/Canvas&gt;
  </code></pre>
  
  <p>and in model I have:</p>
  
  <pre><code>public Canvas DrawCanvas { get; set; }
  public ImageSourceViewModel()
  {
      this.PropertyChanged += this.ImageSourceViewModel_PropertyChanged;
      this.Scale = 1;
      this.TranslateX = 0;
      this.TranslateY = 0;
      DrawCanvas=new Canvas();
      var line = new Line();
      line.X1= 1;
      line.Y1 = 1;
      line.X2 = 100;
      line.Y2 = 10;
      line.Stroke=new SolidColorBrush(Colors.Green);
      line.StrokeThickness = 2;
      line.Visibility=Visibility.Visible;
      DrawCanvas.Children.Add(line);
  }
  </code></pre>
  
  <p>I'm using Caliburn Micro.</p>
  
  <p>It doesn't draw any line on output.</p>
  
  <p>There could be two reason for this problem:</p>
  
  <p>1- The canvas on view is not bind to DrawCanvas in ViewModel.</p>
  
  <p>2- The drawing code is not correct.</p>
  
  <p>How can I check that the my view canvas is actually bind to DrawCanvas in my ViewModel? Is the syntax for binding correct? I am using Caliburn Micro.</p>
  
  <p>If the binding is correct, what the problem with drawing code that it is not working?</p>