コード例 #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);
            }));
        }
コード例 #4
0
 public async Task PopModalAsync(bool?animated = null)
 {
     await CrossTask.Yield();
 }