private async void NextPageExecute(object sender) { if ((await CurrentStep.OnGoNext(new DefaultStepConfigurator(CurrentStep))) == false) { return; } TransitionType = TransitionType.Right; #pragma warning disable 4014 SimpleWorkAsync(async() => #pragma warning restore 4014 { var nextStep = Steps.ElementAt(Steps.IndexOf(CurrentStep) + 1); await nextStep.OnEntry(Data, new DefaultStepConfigurator(nextStep)); CurrentStep = nextStep; }); }