nerdexam
Microsoft

70-518 · Question #228

You are designing a Windows Presentation Foundation (WPF) application. The main window of the WPF application includes two panels: panel1and panel2. The WPF application must meet the following…

The correct answer is C. Use a DataTemplate object. See the full explanation below for the reasoning.

Question

You are designing a Windows Presentation Foundation (WPF) application. The main window of the WPF application includes two panels: panel1and panel2. The WPF application must meet the following requirements:

  • Panel2 must be enabled only after users have entered values into

multiple text boxes in panel1.

  • The background color of panel2 must be set to a specific color based

on oneof the text box values in panel1.

  • The background color of panel2 must be set at the same time the panel

is enabled. You need to recommend an approach for meeting the requirements. What should you recommend?

Options

  • AUse a Command object.
  • BUse Dependency properties.
  • CUse a DataTemplate object.
  • DUse a MultiDataTrigger object.

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    14% (5)
  • C
    71% (25)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice