Cannot deserialize color in ScheduleAppointment

when i try to deserialize the appointment, the color property is lost.

Possible solutions?

Thanks


ScheduleAppointment clientMeeting = new ScheduleAppointment();

            DateTime currentDate = DateTime.Now.AddDays(1);

            DateTime startTime = new DateTime(currentDate.Year, currentDate.Month, currentDate.Day, 10, 0, 0);

            DateTime endTime = new DateTime(currentDate.Year, currentDate.Month, currentDate.Day, 12, 0, 0);

            clientMeeting.StartTime = startTime;

            clientMeeting.EndTime = endTime;

            clientMeeting.Color = Color.Blue;

            clientMeeting.Subject = "ClientMeeting";


            ScheduleAppointment test = JsonConvert.DeserializeObject<ScheduleAppointment>(JsonConvert.SerializeObject(clientMeeting));


1 Reply

SS SaiGanesh Sakthivel Syncfusion Team November 29, 2021 12:40 PM UTC

Hi Macro, 
 
Thank you for using Syncfusion products. 
  
We have analyzed the reported query”Cannot deserialize color in ScheduleAppointment”, from our end. There is an issue in framework level when the deserialize of the xamarin color from json object. We have already logged an issue report for the same with Xamarin, kindly refer the following link for the same, 
 
 
We are having following the reported bug, once we got the solution from the Xamarin team, we will update you the further details. We appreciate your patience until then. 
   
Regards, 
SaiGanesh Sakthivel

Loader.
Up arrow icon