Microsoft
70-511 · Question #161
You are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in a file named Themes.dll. You have the following markup segment. <Border…
The correct answer is A. Add the following line to Window.Resources. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in a file named Themes.dll. You have the following markup segment. <Border Style="{StaticResource BlueBackground)" Height="100" Width="200"> </Border> BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file. You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style. What should you do?
Options
- AAdd the following line to Window.Resources.
- BAdd the following line to Window.Resources.
- CAdd the following line to Border.Resources.
- DAdd the following line to Border.Resources.
How the community answered
(20 responses)- A75% (15)
- B15% (3)
- C5% (1)
- D5% (1)
Community Discussion
No community discussion yet for this question.