private void SfSchedule_ScheduleTappedEvent(object sender, CellTappedEventArgs e) { viewOptionLayout.OptionLayout.Visibility = ViewStates.Invisible; var schedule = (sender as SfSchedule); if ((e.ScheduleAppointment as ScheduleAppointment) != null) { SelectedAppointment = (e.ScheduleAppointment as ScheduleAppointment); indexOfAppointment = schedule.Appointments.IndexOf((e.ScheduleAppointment as ScheduleAppointment)); } else { SelectedAppointment = null; indexOfAppointment = -1; } if (schedule.ScheduleView == ScheduleView.MonthView) { schedule.ScheduleView = ScheduleView.DayView; schedule.MoveToDate = e.Calendar; } else { linearLayout.Visibility = ViewStates.Invisible; editor.EditorLayout.Visibility = ViewStates.Visible; editor.UpdateEditor((e.ScheduleAppointment as ScheduleAppointment), (e.Calendar as Calendar)); } }
private void SfSchedule_DoubleTapped(object sender, CellTappedEventArgs e) { viewOptionLayout.OptionLayout.Visibility = ViewStates.Invisible; var schedule = sender as SfSchedule; if ((e.ScheduleAppointment as ScheduleAppointment) != null) { selectedAppointment = e.ScheduleAppointment as ScheduleAppointment; indexOfAppointment = (schedule.ItemsSource as ScheduleAppointmentCollection).IndexOf(e.ScheduleAppointment as ScheduleAppointment); } else { selectedAppointment = null; indexOfAppointment = -1; } linearLayout.Visibility = ViewStates.Invisible; editor.EditorLayout.Visibility = ViewStates.Visible; editor.ScrollView.ScrollTo(0, 0); editor.UpdateEditor(e.ScheduleAppointment as ScheduleAppointment, e.Calendar as Calendar); }