Esempio n. 1
0
        public async Task PopModalNavigationService()
        {
            var currentNavigationService = FreshIOC.Container.Resolve <IFreshNavigationService> (_currentPageModel.CurrentNavigationServiceName);

            currentNavigationService.NotifyChildrenPageWasPopped();

            var navServiceName = _currentPageModel.PreviousNavigationServiceName;
            IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> (navServiceName);
            await rootNavigation.PopPage(true);
        }
Esempio n. 2
0
        public async Task PopPageModel(bool modal = false)
        {
            string navServiceName = _currentPageModel.CurrentNavigationServiceName;

            if (_currentPageModel.IsModalFirstChild)
            {
                navServiceName = _currentPageModel.PreviousNavigationServiceName;
            }

            IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> (navServiceName);
            await rootNavigation.PopPage(modal);
        }
Esempio n. 3
0
        public async Task PopPageModel(bool modal = false)
        {
            string navServiceName = _currentPageModel.CurrentNavigationServiceName;

            if (_currentPageModel.IsModalFirstChild)
            {
                await PopModalNavigationService();
            }
            else
            {
                if (modal)
                {
                    this._currentPageModel.RaisePageWasPopped();
                }

                IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> (navServiceName);
                await rootNavigation.PopPage(modal);
            }
        }
Esempio n. 4
0
 public async Task PopPageModel(bool modal = false)
 {
     IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> ();
     await rootNavigation.PopPage(modal);
 }
Esempio n. 5
0
 public async Task PopModalNavigationService()
 {
     var navServiceName = _currentPageModel.PreviousNavigationServiceName;
     IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> (navServiceName);
     await rootNavigation.PopPage(true);
 }
Esempio n. 6
0
 public async Task PopPage()
 {
     IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService>(Constants.DefaultNavigationServiceName);
     await rootNavigation.PopPage();
 }