nerdexam
Microsoft

70-491 · Question #76

You are developing a Windows Store app. You declare a Search declaration in the app manifest and you add a search results page. You plan to display search results by using a Query Text property that…

The correct answer is D. Add an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs. See the full explanation below for the reasoning.

Question

You are developing a Windows Store app. You declare a Search declaration in the app manifest and you add a search results page. You plan to display search results by using a Query Text property that derives from EventArgs, You need to ensure that users can use the Search charm to search for content within the app. What should you do?

Options

  • AAdd an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs.
  • BAdd an event handler for the SearchPane.QueryChanged event to MainPage.xaml.es.
  • CAdd an event handler for the SearchPane.QuerySubmitted event to MainPage.xaml.es.
  • DAdd an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs.

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    4% (1)
  • D
    84% (21)

Community Discussion

No community discussion yet for this question.

Full 70-491 Practice