We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon