Microsoft
70-518 · Question #115
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 Command 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 Dependency properties.
- BUse a DataTemplate object.
- CUse a Command object.
- DUse a MultiDataTrigger object.
How the community answered
(30 responses)- A3% (1)
- B7% (2)
- C73% (22)
- D17% (5)
Community Discussion
No community discussion yet for this question.