コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
            }
        }
コード例 #4
0
 public async Task PopPageModel(bool modal = false)
 {
     IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> ();
     await rootNavigation.PopPage(modal);
 }
コード例 #5
0
 public async Task PopModalNavigationService()
 {
     var navServiceName = _currentPageModel.PreviousNavigationServiceName;
     IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService> (navServiceName);
     await rootNavigation.PopPage(true);
 }
コード例 #6
0
 public async Task PopPage()
 {
     IFreshNavigationService rootNavigation = FreshIOC.Container.Resolve <IFreshNavigationService>(Constants.DefaultNavigationServiceName);
     await rootNavigation.PopPage();
 }