예제 #1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     // Load the main control
     this.RootVisual = new UserControlContainer();
     HomePage page = new HomePage();
     ((UserControlContainer)this.RootVisual).SwitchControl(page);
 }
예제 #2
0
 private void ok_button_Click(object sender, RoutedEventArgs e)
 {
     HomePage page = new HomePage();
     ((UserControlContainer)Application.Current.RootVisual).SwitchControl(page);
 }