Microsoft
70-511 · Question #154
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to allow users to customize the background colors, foreground colors, and font style of the…
The correct answer is D. < Grid >. See the full explanation below for the reasoning.
Question
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to allow users to customize the background colors, foreground colors, and font style of the application. You also plan to add a TextBlock control to the application. You write the following code fragment. (Line numbers are included for reference only.) You need to ensure that the ContextMenu control is associated with the TextBlock control. You also need to ensure that the properties that can be customized are shown hierarchically. Which code fragment should you insert at line 15?
Exhibit
Options
- A< Grid >
- B< Window.ContextMenu >
- C<Window. ContextMenu >
- D< Grid >
How the community answered
(34 responses)- A3% (1)
- B9% (3)
- C15% (5)
- D74% (25)
Community Discussion
No community discussion yet for this question.
