public MainWindow() { InitializeComponent(); selectPage = new SelectPage(); newGamePage = new NewGamePage(); Pages.Content = newGamePage; }
private void NewGameBtn_Click(object sender, RoutedEventArgs e) { // go to SelectPage SelectPage selectPage = new SelectPage(); this.NavigationService.Navigate(selectPage); }
private void startBtn_Click(object sender, RoutedEventArgs e) { SelectPage selectPage = new SelectPage(); this.NavigationService.Navigate(selectPage); }