The ContentControl is often overlooked when building Silverlight apps. It’s used inside many controls such as the Button or ChildWindow, but it also turns out to be quite useful on it’s own for separating content from presentation.
A while ago I needed to have multiple resource dictionaries available to my Silverlight application. One would be the base library with a complete set of style resources for the application, and the others would be resource dictionaries for alternative styles. The application would choose which alternative style to use when it loaded, and would merge the alternative style into the base style resources.
Mahesh Sabnis explains how to dynamically load and merge resource dictionaries. Very good tutorial.
I am assuming that most of you might have already started using Silverlight 3 and have read our previous Silverlight 3 articles. This new version of Silverlight has lots of various new professional features. One of the new features is ‘Merge Resource Dictionaries’. Resource Dictionary is a facility using which styles and templates can be defined for various UIElements provided in Silverlight. Let us explore this feature in this article.