public BikeWizardFinishPage(WizardResultModel model) { InitializeComponent(); _model = model; imgBike.HeightRequest = App.ScreenHeight / 3; PrepareUI(); }
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() ); }