4.5.0 - Better Day Styling
General
- Added "ConnectingSelectedDays" example to sample app #127
- Added "Duolingo Streak Calendar" example to sample app #137
- Added Github Sponsor option to repo
Core
- Added a non-generic class for "Calendar" #129
Forms & MAUI
- Improved CalendarView initialisation/navigation/update speed
- Added "DefaultStyles" class containing default DayView styles for each DayState. You can easily reference them through the {x:Static} XAML markup extension instead of having to recreate them.
- Added
AutoSetStyleBasedOnDayState
property to DayView. When set tofalse
, the DayView will not automatically update the active style when dependent properties likeDateTime
orDayState
change. #133 - Removed default
WidthRequest
value of45
- Changed default
HeightRequest
andWidthRequest
properties in DayView to be set via a default style instead of on the control directly. Setting the values on the controls directly caused them to override any values set in Triggers, Styles, and Visual States so this fixes that #139 - Replaced
[DayState]BackgroundColor
,[DayState]TextColor
,[DayState]Command
, and[DaySate]CommandParameter
properties in DayView with[DayState]Style
properties. Now you can change any property of the DayView depending on its state instead of just itsBackgroundColor
,TextColor
,Command
, andCommandParameter
#132
MAUI
- Fix layout issues where days in a CalendarView would be cut off due to not having enough space
Full Changelog: 4.4.2...4.5.0