コード例 #1
0
        // Called on Selecting Players
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            //TODO: Convert Object Name to String received from SelectPlayerPage

            // Store the Object Name as var
            var nameOfPlayers = e.Parameter as Name;

            //Convertinf values passed in  Name object into string format
            pName1 = nameOfPlayers.playerName1.ToString();
            pName2 = nameOfPlayers.playerName2.ToString();

            // Display Players name
            txtPlayerName1.Text        = nameOfPlayers.playerName1.ToString();
            txtPlayerName2.Text        = nameOfPlayers.playerName2.ToString();
            TextBlockCorrectGuess.Text = "Guess: " + game.NumberToGuess();
        }