public void Initialize() { INavigationService navigationService = new LocalNavigationService(regionManager, "main_view_area"); unityContainer.RegisterInstance<INavigate>( navigationService ); navigationService.RegisterUri<HomeView>(PageUri.Home); navigationService.RegisterUri<CourseListView>(PageUri.Courses); navigationService.RegisterUri<CourseContentView>(PageUri.CourseContent); navigationService.RegisterUri<ModuleContentView>(PageUri.ModuleContent); navigationService.RegisterUri<LessonContentView>(PageUri.LessonContent); navigationService.RegisterUri<GettingStartedView>(PageUri.GettingStarted); }
protected override void InitializeModules() { base.InitializeModules(); IRegionManager regionManager = Container.Resolve<IRegionManager>(); INavigationService navigationService = new LocalNavigationService(regionManager, "main_view_area"); Container.RegisterInstance<INavigate>(navigationService); navigationService.RegisterUri<HomeView>(PageUri.Home); navigationService.RegisterUri<AdminView>(PageUri.AdminScreen); regionManager.RegisterViewWithRegion("admin_function_region", typeof(StudentCreationView)); regionManager.RegisterViewWithRegion("admin_function_region", typeof(StudentInfoView)); regionManager.RegisterViewWithRegion("admin_function_region", typeof(StudentProgressView)); regionManager.RegisterViewWithRegion("admin_function_region", typeof(CourseUpdatedView)); }