This project has moved and is read-only. For the latest updates, please go here.

Version Challenged in Silverlight for 3.5

Mar 6, 2010 at 1:25 AM

I'm using Preview 9 and starting looking at MEF in Silverlight.  But am confused by all the catalog/composition alternatives many of which may be deprecated, or in one of the half dozen or so versions of MEF people seem to be using.  CompositionInitializer, PartInitializer, PackageCatalog, DeploymentCatalog - what exactly should be used to "Host MEF in a Silverlight 3 application" ?

Mar 6, 2010 at 1:48 AM

Hi babbading

1. PartInitializer was renamed to CompositionInitializer. It is the default API to use for composition in Silverlight.

2. DeploymentCatalog is a new API we're shipping in MEF to handle dynamic download of XAP catalogs. It replaces / deprecates the PackageCatalog that was previously in the Silverlight toolkit.

You can read about both changes here:

So in short use Composition Initializer for hosing, and DeploymentCatalog for xap catalogs. If you look in our preview 9 bits you will see a DeploymentCatalogSample that shows how to use it.

Sorry for the confusion



Mar 6, 2010 at 2:01 AM

Many thanks Glenn!