title: set canvas child in windows store application
body: <p>i have created two canvas in xaml like this :</p>
  
  <pre><code>&lt;Grid&gt;
  &lt;Canvas x:Name="canvas2"    Grid.Row="0" Grid.Column="1"  Grid.ColumnSpan="11" Grid.RowSpan="8" Background="White"  &gt;
  &lt;/Canvas&gt;
  &lt;Canvas x:Name="canvas1" RightTapped="canvas1_RightTapped"  Grid.Row="0" Grid.Column="1"  Grid.ColumnSpan="11" Grid.RowSpan="8" Background="Transparent"  &gt;
  &lt;/Canvas&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>now i want to make these canvases children of another canvas that should be create on button click . I am doing it like this :</p>
  
  <pre><code>Canvas canvas1d = new Canvas();
  canvas1d.Height = canvas1.ActualHeight; 
  canvas1d.Width = canvas1.ActualWidth; 
  canvas1d = canvas1;
  Canvas canvas2d = new Canvas();
  canvas2d.Height = canvas1.ActualHeight;
  canvas2d.Width = canvas1.ActualWidth;
  canvas2d = canvas2;
  Canvas canvas = new Canvas();
  canvas.Height = canvas1.ActualHeight; 
  canvas.Width = canvas1.ActualWidth;
  canvas.Children.Add(canvas2d);
  canvas.Children.Add(canvas1d);
  </code></pre>
  
  <p>but it is given an error </p>
  
  <pre><code>An exception of type 'System.Exception' occurred in mscorlib.dll but was not handled in user code.Element is already the child of another element
  </code></pre>
  
  <p>please help and correct this  code.</p>