So I'm new to SL coming from a WinForms background where I could instantiate a UserControl or Form like this:
MyForm frm = new MyForm();
frm.ShowDialog();
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:
private void btnLoad_Click(object sender, RoutedEventArgs e)
{
Page2 frm2 = new Page2();
frm2. // ?? don't know what write here ??
}
How can I call XAML UserControls?