Microsoft
70-511 · Question #168
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a set of Button controls. You need to ensure that any button that contains…
The correct answer is A. <Style TargetType="{x:Type Button)">. See the full explanation below for the reasoning.
Question
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a set of Button controls. You need to ensure that any button that contains no content is highlighted when the mouse pointer is located over it. Which code fragment should you use?
Options
- A<Style TargetType="{x:Type Button)">
- B<Style TargetType="{x:Type Button)">
- C<Style TargetType="{x:Type Button)">
- D<Style TargetType="{x:Type Button)">
How the community answered
(62 responses)- A76% (47)
- B3% (2)
- C6% (4)
- D15% (9)
Community Discussion
No community discussion yet for this question.