Articles in this section
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>

View sample in GitHub

Demo image for agenda selected date color

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please  to leave a comment
Access denied
Access denied