示例#1
0
        public async Task PopAsync()
        {
            await CrossTask.Yield();

            if (_NavigationRoot.CanGoBack)
            {
                _NavigationRoot.GoBack();
            }
        }
示例#2
0
        public async Task ShowModalAsync <TViewModel>(Action <TViewModel> config = null, bool?animated = null) where TViewModel : class
        {
            var viewModel = ServiceLocator.Get <TViewModel>();

            await ShowModalCoreAsync(viewModel, async vm => {
                await CrossTask.Yield();
                config?.Invoke(vm);
            }, animated);
        }
示例#3
0
        public async Task <bool> PushAsync <TViewModel>(Action <TViewModel> config = null) where TViewModel : class
        {
            var viewModel = ServiceLocator.Get <TViewModel>();

            return(await PushCoreAsync(viewModel, async vm => {
                await CrossTask.Yield();
                config?.Invoke(vm);
            }));
        }
 public async Task PopModalAsync(bool?animated = null)
 {
     await CrossTask.Yield();
 }