O'Reilly logo

XAML Developer Reference by Ashish Ghoda, Mamta Dalal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Merged Resource Dictionaries

Merged dictionaries enable you to share resources across applications by combining multiple resource dictionaries.

Consider an example to understand this concept. This example defines a resource dictionary, DictionaryA.xaml, in one application and then makes use of it in another application that also has a local resource dictionary, DictionaryB.xaml, defined in it.

Create a Merged Resource Dictionary

  1. Create a Silverlight Class Library application and add a resource dictionary, DictionaryA.xaml, to it through the Project | Add New Item command.

  2. Add the following markup to the resource dictionary:

    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required