ME-MarvinE / XCalendar

A plugin for .NET providing an API for representing a calendar along with fully customisable calendar controls for Xamarin Forms and .NET MAUI
MIT License
300 stars 36 forks source link

Change DayView to use styles for each `DayState` it can be in instead of using specific customisation properties #132

Closed ME-MarvinE closed 1 year ago

ME-MarvinE commented 1 year ago

This allows for easier and better customisation of a DayView in a specific DayState. Now, customisation has the same limitations as a Style instead of being restricted to what I choose to add (Previously just TextColor, BackgroundColor, Command, and CommandParameter).

This change also has a few positive side effects:

VisualStates were considered but were deemed to not be ideal due to XAML verbosity and Xamarin/MAUI bugs.