OnImportsSatisfied never called while using Silverlight navigation

May 9, 2012 at 12:26 PM

Hi,

  I am creating my first app with MEF 1.0 and Silverlight 5. I am currently not using Prism. If I don't use silverlight 5 navigation framework to load a UserControl / View then MEF works just fine by importing a ViewModel in the view and also calling the method OnImportsSatisfied of the interface IPartImportsSatisfiedNotification.

However if I use Silverlight navigation framework, though the view is loaded fine, the ViewModel is never initialized by MEF and also the OnImportsSatisfied() is not called ever.

Did I miss something?

 

Regards

Baliga