I am trying to use SfCalendar but i am facing a blocking issue.
Starting from this tutorial
https://help.syncfusion.com/xamarin/sfcalendar/create-appointments
I need my CalendarInlineEvent to have some extra properties, at least a custom Id.
How can I do it?
I've used the SfSchedule before and I could extend the ScheduleAppointment class like this:
public class BookingEvent : ScheduleAppointment
{
public int Id { get; set; }
}
and then I was able to get my custom object from the command execution:
private void ExecuteCellTappedCommand(CellTappedEventArgs args)
{
//...
}
where args.Appointments would be a list of BookingEvent objects.
How can I do the same with SfCalendar?
Even if I do this:
BookingsCollection = new CalendarEventCollection();
BookingsCollection.Add(new BookingEvent
{
Subject = "Test",
BookingId = 5
});
Here I always have args.selectedAppointment to be a list of CalendarInlineEvent instead of a list of BookingEvent:
protected void Handle_InlineToggled(object sender, InlineToggledEventArgs args)
{
}
So basically i want to do
this but with CalendarInlineEvent instead of ScheduleAppointment.