示例#1
0
        public async Task <INavigationResult> GoBackAsync(INavigationParameters parameters = null, NavigationTransitionInfo infoOverride = null)
        {
            if (parameters == null && (_frame as IFrameFacade2).Frame.BackStack.Any())
            {
                var previous = (_frame as IFrameFacade2).Frame.BackStack.Last().Parameter?.ToString();
                parameters = new NavigationParameters(previous);
            }

            return(await _frame.GoBackAsync(
                       parameters : parameters,
                       infoOverride : infoOverride));
        }
 public async Task <INavigationResult> GoBackAsync(INavigationParameters parameters = null, NavigationTransitionInfo infoOverride = null)
 => await _frame.GoBackAsync(
     parameters : parameters,
     infoOverride : infoOverride);