Change Color of Band in Inline events

Can I Know how to change Inline event color in the calendar which appears on the top left corner as a band shown in the image

Attachment: SyncfusionCalendar_d7fc3a14.zip

1 Reply

HM Hemalatha Marikumar Syncfusion Team October 19, 2016 05:14 AM UTC

Hi Sandhya,

Thanks for contacting Syncfusion Support.

Query: How to change Inline event color in the calendar?

Using Color property in CalendarInlineEvent , we can change the color of inline event. Based on Start and end time difference, density of event’s color indication gets varied.

Code Example:


SfCalendar sfcalendar=new SfCalendar();
CalendarEventCollection collectioon = new CalendarEventCollection();

collectioon.Add(new CalendarInlineEvent()
{
Subject = "Meeting",
StartTime = new DateTime(2016, 10, 12, 4, 0, 0),
EndTime = new DateTime(2016, 10, 12, 6, 0, 0),
Color = Color.Blue
});
sfcalendar.DataSource = collectioon;

For more information, please visit our user documentation link


UG Link: https://help.syncfusion.com/xamarin/sfcalendar/create-appointments

Regards,
Hemalatha M.R.




Loader.
Up arrow icon