예제 #1
0
        private void ConfigureContrainer()
        {
            var container = new UnityContainer();

            container.RegisterType<IUnityContainer, UnityContainer>(new ContainerControlledLifetimeManager());
            container.RegisterType<IRegionManager, RegionManager>();
            container.RegisterType<ISorterViewModel, SorterViewModel>();
            container.RegisterTypeForNavigation<GenerateView>("GenerateRegion");
            container.RegisterType<MenuViewModel>();
            container.RegisterType<ContentViewModel>();
            container.RegisterType<object, MainWindow>();
            container.RegisterType<object, ContentView>();
            container.RegisterType<object, MenuView>();
            _container = container;
        }