title: Display a DrawingVisual on Canvas
body: <p>I have a drawing visual which I have drawings, how do I add this to my canvas and display?</p>
  
  <pre><code> DrawingVisual drawingVisual = new DrawingVisual();
  
   // Retrieve the DrawingContext in order to create new drawing content.
   DrawingContext drawingContext = drawingVisual.RenderOpen();
  
   // Create a rectangle and draw it in the DrawingContext.
   Rect rect = new Rect(new System.Windows.Point(0, 0), new System.Windows.Size(100, 100));
   drawingContext.DrawRectangle(System.Windows.Media.Brushes.Aqua, (System.Windows.Media.Pen)null, rect);
  
   // Persist the drawing content.
   drawingContext.Close();
  </code></pre>
  
  <p>How do I add this to a canvas? Suppose I have a Canvas as </p>
  
  <pre><code>  Canvas canvas = null;
    canvas.Children.Add(drawingVisual); //Doesnt work as UIElement expected.
  </code></pre>
  
  <p>How do I add my drawingVisual  to canvas?</p>
  
  <p>TIA.</p>