Microsoft
70-511 · Question #232
You are developing a Windows Presentation Foundation (WPF) application with multiple windows. The majority of the buttons within the application are styled consistently. However, three buttons…
The correct answer is D. Create the styles in the application resources. would expect TargetType for the default Style and key for the custom Style in the Application
Manage application lifecycle
Question
You are developing a Windows Presentation Foundation (WPF) application with multiple windows. The majority of the buttons within the application are styled consistently. However, three buttons within the application must be styled differently. You need to ensure that the application can handle this styling requirement. What should you do?
Options
- ACreate the styles in the main window resources.
- BCreate the styles in the application resources.
- CCreate the styles in the main window resources.
- DCreate the styles in the application resources.
How the community answered
(36 responses)- A3% (1)
- B6% (2)
- C8% (3)
- D83% (30)
Explanation
would expect TargetType for the default Style and key for the custom Style in the Application
Topics
#WPF#styles#resource scoping#window resources
Community Discussion
No community discussion yet for this question.