nerdexam
Microsoft

70-484 · Question #21

You need to retain the data that is entered in the TextBox control when the user navigates away from the PictureSharerMainPage page. Which code segment should you insert at line CS08?

The correct answer is A. this.NavigationCacheMode. To enable a page to be cached, set NavigationCacheMode to either Enabled or Required. The difference in behavior is that Enabled might not be cached if the frame's cache size limit (CacheSize) is exceeded, whereas Required always generates an entry no matter the size limit…

Program the User Interaction

Question

You need to retain the data that is entered in the TextBox control when the user navigates away from the PictureSharerMainPage page. Which code segment should you insert at line CS08?

Options

  • Athis.NavigationCacheMode
  • Bthis.NavigationCacheMode = Windows.01.Xaml-Navigation.NavigationCache.Enabled;
  • Cthls.Caption~ext3ox.CacheMode = Windows.01.Xaml.ControlCache.CacheEnabled;
  • Dvar cache = CaptionTextBox.Text;

How the community answered

(34 responses)
  • A
    85% (29)
  • B
    3% (1)
  • C
    9% (3)
  • D
    3% (1)

Explanation

  • To enable a page to be cached, set NavigationCacheMode to either Enabled or Required. The difference in behavior is that Enabled might not be cached if the frame's cache size limit (CacheSize) is exceeded, whereas Required always generates an entry no matter the size limit. - Scenario: After the user selects an image on the PictureChooserPage page, ensure that the app navigates back to the PictureSharerMainPage page.

Topics

#NavigationCacheMode#page caching#state retention#navigation

Community Discussion

No community discussion yet for this question.

Full 70-484 Practice