GotoAsync Variante
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user