Exemple #1
0
        void IModule.Initialize()
        {
            // application views
            _container.RegisterType(typeof(Object), typeof(NavigationView), typeof(NavigationView).FullName);
            _container.RegisterType(typeof(Object), typeof(HomeView), typeof(HomeView).FullName);

            _lessons.Insert(0, new Lesson {
                Section = "Welcome", Title = "Home", View = typeof(HomeView).FullName
            });

            // load navigation region using Prism View Discovery
            _regionManager.RegisterViewWithRegion(Constants.NavigationRegionName, () => _container.Resolve <NavigationView>());
        }