Example #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);
        }
Example #2
0
        private void ExecuteNav(NavType navType)
        {
            var type = navType.Type;

            this.contentFrame.Navigate(navType.Type);
            // when we nav home, clear history
            if (type.Equals(typeof(Views.MainPage)))
            {
                this.contentFrame.BackStack.Clear();
                if (this.BackCommand != null)
                {
                    this.BackCommand.RaiseCanExecuteChanged();
                }
            }
        }
Example #3
0
        private void ExecuteNav(NavType navType)
        {
            var type = navType.Type;

            this.contentFrame.Navigate(navType.Type);
            // when we nav home, clear history
            if (type.Equals(typeof(Views.MainPage)))
            {
                this.contentFrame.BackStack.Clear();
                if(this.BackCommand != null)
                {
                    this.BackCommand.RaiseCanExecuteChanged();
                }
            }
        }
Example #4
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);
            }
        }