Introduction
Although it was possible to write extensions for Expression Blend and Expression Design, it wasn’t very easy and out of the box only one addin could be used. With Expression Blend 4 it is possible to write extensions using MEF, the Managed Extensibility Framework. Until today there’s no documentation on how to build these extensions, so look thru the code with
Reflector is something you’ll have to do very often. Because Blend and Design are build using WPF searching the visual tree with
Snoop and
Mole belong to the tools you’ll be using a lot exploring the possibilities.
Configuring the extension project
Extensions are regular .NET class libraries. To create one, load up Visual Studio 2010 and start a new project. Because Blend is build using WPF, choose a
WPF User Control Library from the
Windows section and give it a name and location. I named mine
DemoExtension1.
Because Blend looks for addins named
*.extension.dll you’ll have to tell Visual Studio to use that in the Assembly Name. To change the Assembly Name right click your project and go to
Properties. On the
Application tab, add
.Extension to name already in the
Assembly name text field....