private void Button_Regame_Click(object sender, RoutedEventArgs e) { Page gamePage = new GamePage(number); this.NavigationService.Navigate(gamePage); }