|129013||Feb 21,2017 11:17 AM||Jun 5,2017 06:15 AM||Xamarin.Forms||8|
We can change the inline appointment indicator color (dots mentioned in the image) by setting Color property of ScheduleAppointment in SfSchedule Xamarin Forms (Android). Please refer the following code example and Sample image screenshot for this.
CustomData meeting = new CustomData();
meeting.From = new DateTime(date.Year, date.Month, date.Day, hour, 0, 0);
meeting.To = (meeting.From.AddHours(1));
meeting.EventName = currentDayMeetings[appointmentIndex];
meeting.color = color_collection[appointmentIndex];
dataMapping = new ScheduleAppointmentMapping();
dataMapping.SubjectMapping = "EventName";
dataMapping.StartTimeMapping = "From";
dataMapping.EndTimeMapping = "To";
dataMapping.ColorMapping = "color";
schedule.AppointmentMapping = dataMapping;
meetings = customDataViewModel.ListOfMeeting;
schedule.DataSource = meetings;
Sample Screenshot: MonthInlineAppointment_Color
Sample Path: Xamarin/sample/Forms/SampleBrowser/ => Schedule/GettingStarted
If the above provided solution doesn’t meet your requirement, could you please revert us back with more information such as Xamarin Version, Android Device configurations along with simple issue reproducing sample (if possible)? So, that we can analyze on your requirement further and provide you a possible solution.
As mentioned in the previous update “Change the Default style/Color of Month Appointment Rendering” will be implement in any our upcoming releases. We appreciate your patience until then.
Thank you for the update. We are happy that the given solution has met your requirement, please let us know if you need any further assistance.
Subburaj Pandian V
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.