private void Application_Startup(object sender, StartupEventArgs e) { InitializeContainer(); RootVisual = new Shell(); /* var catalog = new AggregateCatalog(); catalog.Catalogs.Add(new AssemblyCatalog(typeof(App).Assembly)); var container = new CompositionContainer(catalog); var cb = new CompositionBatch(); cb.AddExportedValue(container); cb.AddExportedValue("AssemblyComponentCatalog", catalog); container.Compose(cb); try { var rootPage = container.GetExportedValue<Shell>("RootPage"); this.RootVisual = rootPage; } catch (CompositionException ex) { this.RootVisual = new ErrorWindow(ex.Errors); } */ }
private void Application_Startup(object sender, StartupEventArgs e) { DeploymentCatalogService.Initialize(); RootVisual = new Shell(); }