Files
Brian Lagunas 88b90b919c removed legacy bootstrapper
also updated all tests to use new bootstrapper
2020-08-22 18:27:32 -06:00

29 lines
742 B
C#

using HelloWorld.Modules.ModuleA;
using HelloWorld.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Unity;
using System.Windows;
using Unity;
namespace HelloWorld
{
class Bootstrapper : PrismBootstrapper
{
protected override DependencyObject CreateShell()
{
return Container.Resolve<MainWindow>();
}
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.RegisterSharedSamples();
}
protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
{
base.ConfigureModuleCatalog(moduleCatalog);
moduleCatalog.AddModule<ModuleAModule>();
}
}
}