Which XAML fragment should you use to replace line 02?

You are developing a Silverlight 4 application. You have a resource dictionary contained in a file named myDictionary.XAML that is embedded in a separate assembly named
myResources.dll. The App.XAML file contains the following XAML fragment. (Line numbers are included for refer ence only.)

01 <Application.Resources>
02 <ResourceDictionary Source=”Assets/Styles.xaml”/>
03 </Application.Resources>

You need to add the myDictionary.XAML file to the resource dictionaries in the application. Which XAML fragment should you use to replace line 02?

You are developing a Silverlight 4 application. You have a resource dictionary contained in a file named myDictionary.XAML that is embedded in a separate assembly named
myResources.dll. The App.XAML file contains the following XAML fragment. (Line numbers are included for refer ence only.)

01 <Application.Resources>
02 <ResourceDictionary Source=”Assets/Styles.xaml”/>
03 </Application.Resources>

You need to add the myDictionary.XAML file to the resource dictionaries in the application. Which XAML fragment should you use to replace line 02?

A.
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”myResources/myDictionary.xaml”/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

B.
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”/myResources;component/myDictionary.xaml”/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

C.
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”/myDictionary;component/myResources”/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

D.
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source=”Assets/Styles.xaml”/>
<ResourceDictionary Source=”Assets/myDictionary.xaml”/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>



Leave a Reply 0

Your email address will not be published. Required fields are marked *