Home » Microsoft » 70-518 » What should you create?
You are designing Windows Presentation Foundation (WPF) applications by using Microsoft .NET Framework 4.
You need to maintain a common appearance and behavior across all applications in your company. You also need to ensure that the look and feel of the applications can be modified without recompiling them.
What should you create?
A. a merged resource dictionary
B. user controls in a shared assembly
C. an instance of the System.Windows.Media.StyleSimulations class
D. custom controls in a shared assembly
Correct Answer: A
Explanation/Reference:
Explanation Correct A
Explanation/Reference: See http://msdn.microsoft.com/en-us/library/aa350178.aspx
Windows Presentation Foundation (WPF) resources support a merged resource dictionary feature. This feature provides a way to define the resources portion of a WPF application outside of the compiled XAML application. Resources can then be shared across applications and are also more conveniently isolated for localization.
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="myresourcedictionary.xaml"/>
<ResourceDictionary Source="myresourcedictionary2.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>