单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
You need to ensure that the style is applied to all labels within the application.
What should you do?()
A. Add the style to the <Grid.Resources> section of the main window.
B. Add the style to the <Window.Resources> section of the main window.
C. Add the style to the <Application.Resources> section of the App.xaml file.
D. Add the style to the <Application.Properties> section of the App.xaml file.
E. Add the style to the <ResourceDictionary> section of the ResourceDictionary.xaml file.
相关考题
-
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a window that has two labels named First and Second. You need to display the label named First in blue. Which code fragment should you use?()
A.
B.
C.
D. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to create a window that has a layout as shown in the following exhibit. You need to define the code fragment to create the window layout. Which code fragment should you use?()
A.
B.
C.
D. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want the application to contain a window as shown in the following exhibit. The application contains the following code fragment. (Line numbers are included for reference only.) You need to create the application window. Which code fragment should you insert at line 12?()
A.
B.
C.
D.
