Version Challenged in Silverlight for 3.5

Mar 6, 2010 at 12: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 12: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: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2010/02/17/new-mef-drop-preview-9-on-codeplex.aspx

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

Thanks

Glenn

Mar 6, 2010 at 1:01 AM

Many thanks Glenn!