Binding to the CalendarView's Days
property only works after XAML hot reload
#193
Labels
bug
Something isn't working
Days
property only works after XAML hot reload
#193
Describe the bug
Binding of the
Days
property of theCalendarView
inside theDaysViewTemplate
doesn't work; value changes aren't recognised until hot reload is triggered.Expected behaviour
Binding of the
Days
property of theCalendarView
inside theDaysViewTemplate
doesn't require hot reload to be performed in order to start recognising value changes.Steps to reproduce OR link to code
DaysViewTemplate
property to the followingControlTemplate
:Label
s' text; nothing shows up.Label
s' text now shows up.Xamarin Forms or .NET MAUI (If related to UI)
Both
Device Info (Optional)
Device Model: Samsung SM-G998B on BlueStacks 5 emulator
Android Version: 7.1 (API 25)
Additional Info
The way days are updated in the
CalendarView
andDaysView
is by using the PropertyChanged callback of their respective bindable properties. In theDaysView
, theCollectionView
'sItemsSource
property is set. In theCalendarView
, theDaysView
'sDays
property is set. This was originally done because binding to those properties didn't work, though I don't remember if I figured out why.The text was updated successfully, but these errors were encountered: