Design-time support for XAML files in class libraries

One thing you’ll experience if you split your WPF/Silverlight applications into modules, for instance by following the Composite Application Guidance for WPF and Silverlight, is the lack of design-time support for the modules which are split out into separate class libraries. In Expression Blend 3, you will only be able to edit the modules in XAML view, which is kind of annoying, since you’ll be missing out on many of the benefits the design view can offer.

Luckily there’s something you can do to remedy this situation. The solution is easy, all you’ll have to do is to add one line in your module’s project file. Open the file in Notepad and add


in the first property group. Expression Blend should now be able to load the design surface for you!