nerdexam
Microsoft

70-511 · Question #182

You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List (Of T) named Leads, where T is a class named Lead. The Lead class contains the properties…

The correct answer is C. Insert the following code at line 22. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application that displays opportunities from List (Of T) named Leads, where T is a class named Lead. The Lead class contains the properties Title and Revenue. You add a DataGrid control named dgQualifiedLeads to the MainWindow.xaml file. You set the ItemSource property of dgQualifiedLeads to Leads as follows. (Line numbers are included for reference only.) You need to ensure that CollectionViewSource is used to filter the list to display only Lead objects with revenue of more than $1,000. What should you do?

Exhibit

70-511 question #182 exhibit

Options

  • AInsert the following code at line 22.
  • BInsert the following code at line 22.
  • CInsert the following code at line 22.
  • DInsert the following code at line 22.

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    74% (14)
  • D
    16% (3)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice