private void Schedule_MonthInlineAppointmentTapped(object sender, Syncfusion.SfSchedule.XForms.MonthInlineAppointmentTappedEventArgs args) { var appointment = args.Appointment; var t = ""; // execute view model command here .. (BindingContext as CalendarPageViewModel).AppointmentCommand.Execute(appointment as ScheduleAppointment); }
/// <summary> /// Method for schedule inline tapped. /// </summary> /// <param name="sender">return the object</param> /// <param name="e">Month Inline Appointment Tapped Event Args</param> private void Schedule_MonthInlineAppointmentTapped(object sender, Syncfusion.SfSchedule.XForms.MonthInlineAppointmentTappedEventArgs e) { if (e.Appointment != null) { this.editorLayout.IsVisible = true; ObservableCollection <Meeting> appointment = new ObservableCollection <Meeting>(); appointment = (ObservableCollection <Meeting>) this.schedule.DataSource; this.indexOfAppointment = appointment.IndexOf((Meeting)e.Appointment); (this.editorLayout.Behaviors[0] as EditorLayoutBehavior).OpenEditor((Meeting)e.Appointment, e.selectedDate); this.isNewAppointment = false; } }