Microsoft
70-511 · Question #114
You are developing a Windows Presentation Foundation (WPF) application. The application is bound to a data source. You need to ensure that the style of controls is bound to values retrieved from the…
The correct answer is C. Create a DataTrigger element within the style that specifies the path to the bound property. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. The application is bound to a data source. You need to ensure that the style of controls is bound to values retrieved from the data source. What should you do?
Options
- ACreate a Trigger element within the style that specifies the property value as the bound
- BCreate the style and specify the TargetType attribute.
- CCreate a DataTrigger element within the style that specifies the path to the bound property.
- DCreate the style and specify the BasedOn attribute.
How the community answered
(53 responses)- A4% (2)
- B8% (4)
- C72% (38)
- D17% (9)
Community Discussion
No community discussion yet for this question.