コード例 #1
0
        public BikeWizardFinishPage(WizardResultModel model)
        {
            InitializeComponent();
            _model = model;
            imgBike.HeightRequest = App.ScreenHeight / 3;

            PrepareUI();
        }
コード例 #2
0
        private async Task GetWizardResult()
        {
            StaticMethods.ShowLoader();
            Task.Factory.StartNew(
                // tasks allow you to use the lambda syntax to pass wor
                () =>
            {
                resultModel = WebService.GetWizardResult(answerArray);
            }).ContinueWith(async
                            t =>
            {
                Device.BeginInvokeOnMainThread(async() =>
                {
                    if (resultModel != null)
                    {
                        Navigation.PushModalAsync(new BikeWizardFinishPage(resultModel));
                    }
                });

                StaticMethods.DismissLoader();
            }, TaskScheduler.FromCurrentSynchronizationContext()
                            );
        }