From 337eb638958cb018a2bceaa8dc18a1385eaa3b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20ANDRE=20=28E104915=29?= Date: Wed, 4 Sep 2024 13:40:42 +0200 Subject: [PATCH] fix: fix ItemsSource --- src/MyNet.Wpf/Controls/CalendarBase.cs | 2 +- src/MyNet.Wpf/MyNet.Wpf.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MyNet.Wpf/Controls/CalendarBase.cs b/src/MyNet.Wpf/Controls/CalendarBase.cs index f844eb8..d30d0ee 100644 --- a/src/MyNet.Wpf/Controls/CalendarBase.cs +++ b/src/MyNet.Wpf/Controls/CalendarBase.cs @@ -118,7 +118,7 @@ protected CalendarBase() BlackoutDates = new BlackoutDatesCollection(this); SelectedDatesInternal = new Calendars.SelectedDatesCollection(this); SetCurrentValue(DisplayDateProperty, DateTime.Now); - SetCurrentValue(ItemsSourceProperty, _appointments); + ItemsSource = _appointments; BusyService = new BusyService(); GlobalizationService.Current.TimeZoneChanged += OnTimeZoneChangedCallback; diff --git a/src/MyNet.Wpf/MyNet.Wpf.csproj b/src/MyNet.Wpf/MyNet.Wpf.csproj index 90190f7..38f777d 100644 --- a/src/MyNet.Wpf/MyNet.Wpf.csproj +++ b/src/MyNet.Wpf/MyNet.Wpf.csproj @@ -13,7 +13,7 @@ - + all