Thank you for your kind reply , Richard.
That's working.
But I found some other code like Adding catalog of referenced assemblies.
var catalog = new AggregateCatalog(AssemblySource.Instance.Select(x => new AssemblyCatalog(x))); catalog.Catalogs.Add(new AssemblyCatalog((typeof(CMSample.ViewModels.ShellViewModel)).Assembly));//.ViewModels.ShellViewModel)).Assembly)); container = new CompositionContainer(catalog);var batch = new CompositionBatch(); batch.AddExportedValue<IWindowManager>(new WindowManager()); batch.AddExportedValue<IEventAggregator>(new EventAggregator()); batch.AddExportedValue(catalog); batch.AddExportedValue(container); container.Compose(batch);
I am not sure about the code, I got. will you please tell me, Which one suits best in Caliburn.Micro standards, the above mentioned code or one described in your reply.
Thanks
Antony