protected override CompositionContainer CreateContainer()
        {
            // The Prism call to create a container
            var exportProvider = new MEFedMVVMExportProvider(MEFedMVVMCatalog.CreateCatalog(AggregateCatalog));

            _compositionContainer         = new CompositionContainer(exportProvider);
            exportProvider.SourceProvider = _compositionContainer;

            return(_compositionContainer);
        }
Пример #2
0
        protected override CompositionContainer CreateContainer()
        {
            // Now add the MEF export provider for view models
            var exportProvider = new MEFedMVVMExportProvider(MEFedMVVMCatalog.CreateCatalog(AggregateCatalog));

            _compositionContainer         = new CompositionContainer(null, true, exportProvider);
            exportProvider.SourceProvider = _compositionContainer;

            return(_compositionContainer);
        }