private void ActivateViewInStateIfNecessary(IView view) { if (!_viewManager.IsRequestCurrentView(view, _state.CurrentView)) { if (!UIPConfiguration.Config.AllowBackButton) { _viewManager.ActivateView(null, _state.CurrentView, this); } else { if (RunningInNavGraph) { if (!UIPConfiguration.Config.ViewExistsInNavigationGraph(_state.NavigationGraph, _viewManager.GetViewNameForCurrentRequest(view))) { _viewManager.ActivateView(null, _state.CurrentView, this); } } } } }
/// <summary> /// Natvigate to the next view. /// </summary> public void Navigate() { _statePersister.Save(_state); _viewManager.ActivateView(this); }