Example #1
0
        public Page NavigateBack()
        {
            History.Pop();

            Output.Clear(); // Console.Clear();
            CurrentPage.Display();
            return(CurrentPage);
        }
Example #2
0
        public T NavigateTo <T>() where T : Page
        {
            SetPage <T>();

            Output.Clear(); // Console.Clear();
            CurrentPage.Display();
            return(CurrentPage as T);
        }
Example #3
0
        public void NavigateHome()
        {
            while (History.Count > 1)
            {
                History.Pop();
            }

            Output.Clear(); // Console.Clear();
            CurrentPage.Display();
        }