示例#1
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     GamePage.playerName = nametext.Text;
     if (nametext.Text != "")
     {
         NavigationService.Navigate(GamePage.GetUri());
     }
 }
示例#2
0
 // Simple button Click event handler to take us to the second page
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     NavigationService.Navigate(GamePage.GetUri());
 }