Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
            }
        }