Category / Section
How to change the agenda view date text color in Xamarin.Forms Calendar (SfCalendar)
1 min read
You can change agenda view date text color by using the AgendaSelectedDateColor property of MonthViewSettings in Xamarin.Forms SfCalendar.
XAML
Set the InlineViewMode as Agenda and ShowInlineEvents as True. By setting the AgendaSelectedDateColor, you can change the date text color of the agenda view.
<calendar:SfCalendar x:Name="calendar" DataSource="{Binding Appointments}" ShowInlineEvents="true" InlineViewMode="Agenda"> <calendar:SfCalendar.MonthViewSettings> <calendar:MonthViewSettings AgendaSelectedDateColor="#889e81"> </calendar:MonthViewSettings> </calendar:SfCalendar.MonthViewSettings> <ContentPage.BindingContext> <local:CalendarViewModel /> </ContentPage.BindingContext> </calendar:SfCalendar>