private INavigationService CreateNavigationService() { var navigationService = new Services.NavigationService(); navigationService.Configure(NavigationKeys.Home, typeof(MainPage)); navigationService.Configure(NavigationKeys.Discover, typeof(DiscoverPage)); return navigationService; }
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); }
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(); }