Пример #1
0
        protected override DependencyObject CreateShell()
        {
            Shell shell = Container.Resolve<Shell>();
            Application.Current.RootVisual = shell;

            var regionManager = new RegionManager();

            regionManager[RegionNames.MainRegion] = shell.LayoutRoot;

            this.Container.RegisterInstance(typeof(RegionManager), regionManager);

            return shell;
        }
Пример #2
0
 public Level2Module(RegionManager regionManager, IModuleManager moduleManager)
 {
     this.regionManager = regionManager;
     this.moduleManager = moduleManager;
 }