Dec 10, 2010 at 2:13 PM
Edited Dec 10, 2010 at 2:13 PM
Playing with the modularity sample.
I modified the ModuleControl to have an import of IModuleCatalog (exactly as in the Shell).
But it does not get satisfied, why does it get satisfied in the shell and not in the ModuleControl. Tried several things at the end I had something like this,
and if I uncomment the SatisfyImports I get an error that it cannot find the ImoduleCatalog.
public partial class ModuleControl : ContentControl, IPartImportsSatisfiedNotification
/// Initializes a new instance of the <see cref="ModuleControl"/> class.
this.Loaded += new RoutedEventHandler(ModuleControl_Loaded);
void ModuleControl_Loaded(object sender, RoutedEventArgs e)
[Import(AllowRecomposition = false)]
public IModuleCatalog moduleCatalog;