nerdexam
Microsoft

70-511 · Question #41

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

(29 responses)
  • A
    83% (24)
  • B
    3% (1)
  • C
    10% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice