I'm trying to change the schedule view from MonthView to DayView when a user double taps a day in the MonthView. I'm receiving the following error after doing so:
System.NotSupportedException: Unable to activate instance of type Com.Syncfusion.Schedule.TapGestureListener from native handle 0x7fe56bd724 (key_handle 0x902fbab).
I'm using Syncfusion.Xamarin.SfSchedule v16.2.0.46
This same code works fine if I execute it in the CellTapped event instead of CellDoubleTapped.
private void schedule_CellDoubleTapped(object sender, CellTappedEventArgs e)
{
try
{
if (schedule.ScheduleView == Syncfusion.SfSchedule.XForms.ScheduleView.MonthView)
{
schedule.ScheduleView = Syncfusion.SfSchedule.XForms.ScheduleView.DayView;
}
}
catch(Exception ex)
{
//Handle any exception
}
}
The error happens after the CellDoubleTapped method exits.
Any help will be greatly appreciated.