GotoAsync Variante

This commit is contained in:
2024-10-12 17:19:38 +02:00
parent a7a940a70b
commit e2f029893e

View File

@@ -139,9 +139,11 @@ internal class StundenViewModel : ObservableObject, IQueryAttributable {
} }
private async Task SelectEntryAsync(DayTime entry) { private async Task SelectEntryAsync(DayTime entry) {
if (entry != null && entry.id != null) if (entry != null && entry.id != null) {
await Shell.Current.GoToAsync($"{nameof(Views.StundePage)}?load={entry.id}"); var navigationParameters = new Dictionary<string, object> {{ "load", entry.id }};
else AlertEvent?.Invoke(this, "Auswahl enthält keine Daten"); //await Shell.Current.GoToAsync($"{nameof(Views.StundePage)}?load={entry.id}");
await Shell.Current.GoToAsync($"{nameof(Views.StundePage)}", navigationParameters);
} else AlertEvent?.Invoke(this, "Auswahl enthält keine Daten");
} }