nerdexam
Microsoft

70-511 · Question #241

You are developing a Windows Presentation Foundation (WPF) application. The MainWindow.xaml file contains a TreeView control with a DataTemplate that displays three levels in the following…

The correct answer is B. Set the ItemSource for the Menu control to the ItemSource value of the TreeView control. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application. The MainWindow.xaml file contains a TreeView control with a DataTemplate that displays three levels in the following hierarchical order: 1. Household

Options

  • ASet the ItemSource for the Menu control to the ResourceKey value of the TreeView's
  • BSet the ItemSource for the Menu control to the ItemSource value of the TreeView control.
  • CSet the ItemSource for the Menu control to the ItemSource value of the TreeView control.
  • DSet the ItemSource for the Menu control to the ResourceKey value of the TreeView's
  • IChildren

How the community answered

(21 responses)
  • A
    10% (2)
  • B
    71% (15)
  • C
    14% (3)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice