Beispiel #1
0
 private void ExecuteNavigationInternal(string pageName, object parameter, NavigationMode navigationMode, Dictionary <string, object> viewBag = null)
 {
     ModifyHistory(pageName, parameter, navigationMode, viewBag);
     NavigationExecutor.ExecuteNavigation(ID, pageName, parameter, viewBag);
     _navigationService.RunOnUIThread(() =>
     {
         _navigationService.ChangeCanGoBack(ID);
         _navigationService.ChangeCanGoForward(ID);
     });
 }
Beispiel #2
0
        private void ExecuteNavigationInternal(string pageName, object parameter, NavigationMode navigationMode, Dictionary <string, object> viewBag = null)
        {
            bool shouldCancel = CallOnLeavingNavigation(true);

            if (shouldCancel)
            {
                return;
            }
            ModifyHistory(pageName, parameter, navigationMode, viewBag);
            NavigationExecutor.ExecuteNavigation(ID, pageName, parameter, navigationMode, viewBag);
            _navigationService.RunOnUIThread(() =>
            {
                _navigationService.ChangeCanGoBack(ID);
                _navigationService.ChangeCanGoForward(ID);
            });
            var currentViewModel = GetCurrentViewModel();

            if (currentViewModel != null)
            {
                _navigationService.RunOnUIThreadAsync(() => currentViewModel.OnLoad());
            }
        }
 private void ExecuteNavigationInternal(string pageName, object parameter, Dictionary <string, object> viewBag = null)
 {
     NavigationExecutor.ExecuteNavigation(ID, pageName, parameter, viewBag);
 }