private void OkButton_Clicked(object sender, EventArgs e) { if (!string.IsNullOrEmpty(CriteriaNameEntry.Text) && CriteriaImportanceSlider.Value != 0) { CriteriaValidated?.Invoke(this, new CustomEventArgs(Criteria)); Shell.Current.Navigation.PopAsync(); } }
public async void NavBackImplementation() { CriteriaValidated?.Invoke(this, new CustomEventArgs(Criteria)); await Shell.Current.Navigation.PopAsync(); }