Calendar rendering.

This commit is contained in:
Burak Kaan Köse
2026-03-23 10:22:47 +01:00
parent 8d143e3b08
commit 8586d0ef54
12 changed files with 1347 additions and 32 deletions
@@ -121,6 +121,9 @@ public partial class CalendarPageViewModel : CalendarBaseViewModel,
[ObservableProperty]
public partial bool IsCalendarEnabled { get; set; } = true;
[ObservableProperty]
public partial IReadOnlyList<CalendarItemViewModel> CalendarItems { get; set; } = [];
#endregion
#region Event Details
@@ -321,6 +324,7 @@ public partial class CalendarPageViewModel : CalendarBaseViewModel,
VisibleDateRangeText = string.Empty;
LoadedDateWindow = null;
_loadedCalendarItems = [];
CalendarItems = [];
}
public void Dispose()
@@ -586,6 +590,7 @@ public partial class CalendarPageViewModel : CalendarBaseViewModel,
await ExecuteUIThreadIfActiveAsync(lifetimeVersion, () =>
{
_loadedCalendarItems = loadedItems;
CalendarItems = loadedItems;
}).ConfigureAwait(false);
}