单项选择题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application.
You have a company logo that must appear on multiple forms in the application.
The logo design changes frequently.
You need to ensure that when the logo image is changed, you only need to update a single location.
What should you do?()
A. Define the image as a page resource.
B. Define the image as an application resource.
C. Save the image on a network drive.
D. Include the image as an embedded resource.
相关考题
-
多项选择题
You use Microsoft .NET Framework 4 to create a custom Windows Presentation Foundation (WPF) application. Your environment includes several WPF applications. The applications use the same logo and style configuration as part of a corporate standard. You need to ensure that the existing applications can be updated to use the same logo and style settings without recompiling. Which two actions should you perform?()
A. Mark the resource as an embedded resource in each application.
B. Create a resource in an XAML file that contains the logo and style configurations.
C. Create a resource in a custom control that contains the logo and style configurations.
D. Add the resource as a ResourceDictionary in the MergedDictionaries collection of each application.
E. Use ResourceManager to read the content of the resource. Manually assign the style configurations included in the resource file to the appropriate control in each application. -
单项选择题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application. You have a page named myPage that contains the following code fragment. You need to ensure that other pages in your application can use CustomerNameBrush. What should you do? ()
A. Move CustomerNameBrush to the App.xaml file.
B. Inherit from myPage in all additional pages that use CustomerNameBrush.
C. Add a reference to myPage to all additional pages that use CustomerNameBrush.
D. Bind controls that need CustomerNameBrush to myPage.Resources.CustomerNameBrush. -
单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains the following code fragment. Hello World Ok You need to define a style that applies the following properties to the text in the StackPanel object: FontSize = 32 FontWeight = Bold Which code fragment should you use?()
A.
B.
C.
D.
