private void ExecuteNav(NavType navType) { var type = navType.Type; var nav = (App.Current as App).NavigationService; // when we nav home, clear history if (type.Equals(typeof(Views.MainPage))) nav.ClearHistory(); // navigate only to new pages if (nav.CurrentPageType != null && nav.CurrentPageType != type) nav.Navigate(type, navType.Parameter); }
private void ExecuteNav(NavType navType) { var type = navType.Type; var nav = (App.Current as App).NavigationService; // when we nav home, clear history if (type.Equals(typeof(Views.MainPage))) { nav.ClearHistory(); } // navigate only to new pages if (nav.CurrentPageType != null && nav.CurrentPageType != type) { nav.Navigate(type, navType.Parameter); } }