Exemplo n.º 1
0
        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);
            }
             */
           
        }
Exemplo n.º 2
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     DeploymentCatalogService.Initialize();
     RootVisual = new Shell();
 }