title: Silverlight - Load XAML file via C# (just like in the WinForms days) - How?
body: <p>So I'm new to SL coming from a WinForms background where I could instantiate a UserControl or Form like this:</p>
  
  <pre><code>MyForm frm = new MyForm();
  frm.ShowDialog();
  </code></pre>
  
  <p>So in SL, I created a simple Page.xaml and a second xaml file called Page2.xaml - I dropped a button in the Page.xaml file and within that button's click event, I tried adding the following to call the 2nd xaml file:</p>
  
  <pre><code>private void btnLoad_Click(object sender, RoutedEventArgs e)
  {
      Page2 frm2 = new Page2();
      frm2.  // ?? don't know what write here ??
  }
  </code></pre>
  
  <p>How can I call XAML UserControls?</p>