/// <summary> /// Method for cell double tapped /// </summary> /// <param name="sender">return the object</param> /// <param name="args">cell tapped event args</param> private void Schedule_CellDoubleTapped(object sender, Syncfusion.SfSchedule.XForms.CellTappedEventArgs args) { this.scheduleViewList.IsVisible = false; this.editorLayout.IsVisible = true; if (this.schedule.ScheduleView == ScheduleView.MonthView) { //create Apppointment (this.editorLayout.Behaviors[0] as EditorLayoutBehavior).OpenEditor(null, args.Datetime); this.isNewAppointment = true; } else { if (args.Appointment != null) { ObservableCollection <Meeting> appointment = new ObservableCollection <Meeting>(); appointment = (ObservableCollection <Meeting>) this.schedule.DataSource; this.indexOfAppointment = appointment.IndexOf((Meeting)args.Appointment); (this.editorLayout.Behaviors[0] as EditorLayoutBehavior).OpenEditor((Meeting)args.Appointment, args.Datetime); this.isNewAppointment = false; } else { //create Apppointment (this.editorLayout.Behaviors[0] as EditorLayoutBehavior).OpenEditor(null, args.Datetime); this.isNewAppointment = true; } } }
/// <summary> /// Method for cell double tapped /// </summary> /// <param name="sender">return the object</param> /// <param name="args">cell tapped event args</param> private void OnSchedulerCellDoubleTapped(object sender, Syncfusion.SfSchedule.XForms.CellTappedEventArgs args) { if (args.Appointment == null) { this.editorLayout.IsVisible = true; (this.editorLayout.Behaviors[0] as EditorLayoutBehavior).OpenEditor(null, args.Datetime, args.Resource); } }