Refactor StundePage and ViewModels: adjust grid padding, clean up commented code, add SelectEntryCommand, and improve navigation logic.
This commit is contained in:
@@ -172,16 +172,6 @@ public partial class StundenViewModel : ObservableObject, IQueryAttributable, IN
|
||||
RefreshListCommand = new AsyncRelayCommand(RefreshList);
|
||||
RefreshCommand = new Command(async () => await RefreshItemsAsync());
|
||||
|
||||
// Task task = LoadDay(DateTime.Today);
|
||||
// Beim Startup NICHT direkt im CTOR laden (kann Startup/Navigation blockieren)
|
||||
// Stattdessen via Dispatcher "nach" dem Aufbau starten:
|
||||
// MainThread.BeginInvokeOnMainThread(async () => {
|
||||
// try {
|
||||
// await LoadDay(DateTime.Today);
|
||||
// } catch (Exception ex) {
|
||||
// AlertEvent?.Invoke(this, ex.Message);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user