protected override void UpdatePhoneBackButton() { if (PhoneNavigationService.CanGoBack) { PhoneNavigationService.GoBack(); } }
protected override void OnPhoneGoBack() { if (PhoneNavigationService.CanGoBack) { PhoneNavigationService.GoBack(); } systemNavigationManager.AppViewBackButtonVisibility = this.PhoneNavigationService.CanGoBack ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed; }
protected override void RegisterPlatformTypes(ContainerBuilder builder) { builder.RegisterType <TwitterPlatformAdapter_WindowsPhone>().SingleInstance().As <IPlatformAdaptor>(); _navigationService = new PhoneNavigationService(this, new PhoneViewBinder(), _navigationFrame); _navigationService.Register(typeof(HomeViewModel), new Uri("/Views/HomeView.xaml", UriKind.Relative)); _navigationService.Register(typeof(SearchResultsViewModel), new Uri("/Views/SearchResultsView.xaml", UriKind.Relative)); builder.RegisterInstance(_navigationService).As <INavigationService>(); }