Beispiel #1
0
        public void Push(IPageTransition transition)
        {
            var nextPage = transition.LoadPage();

            nextPage.Initialize();
            pages.Add(nextPage);
        }
Beispiel #2
0
        public void Replace(IPageTransition transition)
        {
            var currentPage = pages.Last();

            currentPage.Resume();
            currentPage.Discard();
            pages.Remove(currentPage);
            var nextPage = transition.LoadPage();

            nextPage.Initialize();
            pages.Add(nextPage);
        }
Beispiel #3
0
        public void ReplaceAll(IPageTransition transition)
        {
            foreach (var currentPage in pages)
            {
                currentPage.Resume();
                currentPage.Discard();
            }
            pages.Clear();
            var nextPage = transition.LoadPage();

            nextPage.Initialize();
            pages.Add(nextPage);
        }