Occurs before invoking the Edit Appointment dialog.
public event EventHandler<EditAppointmentDialogShowingEventArgs> EditAppointmentDialogShowing
Public Event EditAppointmentDialogShowing As EventHandler(Of EditAppointmentDialogShowingEventArgs)
The EditAppointmentDialogShowing event's data class is DevExpress.UI.Xaml.Scheduler.EditAppointmentDialogShowingEventArgs.
The EditAppointmentDialogShowing is a deferred event. You can process the event in a synchronous mode pausing the SchedulerControl.
To pause the SchedulerControl, use the event’s GetDeferral method. It returns an EventDeferral object. To resume the SchedulerControl’s processing, call the EventDeferral.Complete method.
If you don’t call the EventDeferral.Complete method after calling the GetDeferral method, the SchedulerControl’s processing never resumes.
The EditAppointmentDialogShowing event allows you to create a custom edit form. Use the event’s EditAppointmentDialogShowingEventArgs.ViewModel property to obtain the appointment data (the ViewModel.EditedItem property) and default dialog settings.
If the EditAppointmentDialogShowingEventArgs.Cancel property is set to true, the changes applied to the EditedItem property depend on the event’s EditAppointmentDialogShowingEventArgs.CancelResult property.
Changes are applied to the selected appointment
Changes are applied to the selected recurrence’s pattern appointment
Changes are ignored
The selected appointment is deleted
The selected recurrence’s pattern and all recurrences of this pattern are deleted
If the EditedItem is not a recurring appointment, setting the CancelResult property to either ApplyToPattern or DeletePattern throws the InvalidOperationException.