/// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Provides data for navigation methods and event
 /// handlers that cannot cancel the navigation request.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     puzzle            = Models.SpellingsModel.getInstance();
     PuzzleNumber.Text = "Word #" + (puzzle.getActiveCount() + 1) + " out of " + puzzle.getSpellingsList().Count;
     if ((puzzle.getActiveCount() + 1) == puzzle.getSpellingsList().Count)
     {
         Next.Content = "Submit";
     }
     pageTitle.Text       = puzzle.getPuzzleName();
     OriginalWord.Text    = "Word: " + puzzle.getSpellingsList().ElementAt(puzzle.getActiveCount()).getWord();
     WordDescription.Text = "Meaning: " + puzzle.getSpellingsList().ElementAt(puzzle.getActiveCount()).getDescription();
     this.navigationHelper.OnNavigatedTo(e);
 }
示例#2
0
 /// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Provides data for navigation methods and event
 /// handlers that cannot cancel the navigation request.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Frame.BackStack.RemoveAt(Frame.BackStackDepth - 1);
     puzzle            = Models.SpellingsModel.getInstance();
     PuzzleNumber.Text = "Word #" + (puzzle.getActiveCount() + 1) + " out of " + puzzle.getSpellingsList().Count;
     pageTitle.Text    = puzzle.getPuzzleName();
     if (puzzle.getActiveCount() == puzzle.getSpellingsList().Count - 1)
     {
         Next.Content = "Submit";
     }
     Next.IsEnabled  = false;
     Spell.IsEnabled = false;
     this.navigationHelper.OnNavigatedTo(e);
 }
 /// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the  
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method 
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Provides data for navigation methods and event
 /// handlers that cannot cancel the navigation request.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     puzzle = Models.SpellingsModel.getInstance();
     PuzzleNumber.Text = "Word #" + (puzzle.getActiveCount()+1) + " out of " + puzzle.getSpellingsList().Count;
     if ((puzzle.getActiveCount() + 1) == puzzle.getSpellingsList().Count) Next.Content = "Submit";
     pageTitle.Text = puzzle.getPuzzleName();
     OriginalWord.Text = "Word: "+ puzzle.getSpellingsList().ElementAt(puzzle.getActiveCount()).getWord();
     WordDescription.Text = "Meaning: "+ puzzle.getSpellingsList().ElementAt(puzzle.getActiveCount()).getDescription();
     this.navigationHelper.OnNavigatedTo(e);
 }
 /// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the  
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method 
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Provides data for navigation methods and event
 /// handlers that cannot cancel the navigation request.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Frame.BackStack.RemoveAt(Frame.BackStackDepth - 1);
     puzzle = Models.SpellingsModel.getInstance();
     PuzzleNumber.Text = "Word #" + (puzzle.getActiveCount()+1) + " out of " + puzzle.getSpellingsList().Count;
     pageTitle.Text = puzzle.getPuzzleName();
     if (puzzle.getActiveCount() == puzzle.getSpellingsList().Count - 1) Next.Content = "Submit";
     Next.IsEnabled = false;
     Spell.IsEnabled = false;
     this.navigationHelper.OnNavigatedTo(e);
 }