title: Access parent window from User Control
body: <p>I am trying to access parent window from user control. </p>
  
  <pre><code>userControl1 uc1 = new userControl1();
  
  mainGrid.Children.Add(uc1);
  </code></pre>
  
  <p>through this code I load <code>userControl1</code> to main grid.</p>
  
  <p>But when I click on a button inside <code>userControl1</code> then I want to load another <code>userControl2</code> into <code>mainGrid</code> which is in main window?</p>