Ejemplo n.º 1
0
		private INavigationService CreateNavigationService()
		{
			var navigationService = new Services.NavigationService();
			
			navigationService.Configure(NavigationKeys.Home, typeof(MainPage));
			navigationService.Configure(NavigationKeys.Discover, typeof(DiscoverPage));

			return navigationService;
		}
Ejemplo n.º 2
0
        private static INavigationService CreateNavigationService()
        {
            var navigationService = new Services.NavigationService();

            navigationService.Configure(MasterViewKey, typeof(MasterView));
            navigationService.Configure(DetailViewKey, typeof(DetailView));
            navigationService.Configure(AboutViewKey, typeof(AboutView));
            navigationService.Configure(CommentViewKey, typeof(CommentView));
            navigationService.Configure(NoDetailViewKey, typeof(NoDetailView));
            return(navigationService);
        }
Ejemplo n.º 3
0
        private void Initialize()
        {
            // Page navigation
            var navigationService = new Services.NavigationService();

            navigationService.Configure(Pages.MainPage.ToString(), typeof(MainActivity));

            this.Locator = new ViewModelLocator();
            Locator.Initialize(navigationService);

            // MVVM Light's DispatcherHelper for cross-thread handling.
            DispatcherHelper.Initialize();
        }