Skip to main content

SchedulerControl.RecurrenceFormShowing Event

Occurs before the Appointment Recurrence form is invoked.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public event RecurrenceFormEventHandler RecurrenceFormShowing

#Event Data

The RecurrenceFormShowing event's handler receives an argument of the RecurrenceFormEventArgs type. The following properties provide information specific to this event:

Property Description
AllowResize Gets or sets a value indicating whether end-users are allowed to resize the form. Inherited from FormShowingEventArgs.
AppointmentFormViewModel Gets the View Model for the appointment editing form from which the Appointment Recurrence dialog is invoked.
Cancel Gets or sets the value indicating whether to cancel invoking the form. Inherited from FormShowingEventArgs.
Controller Gets or sets the controller providing settings which are required to edit appointment recurrence in the Appointment Recurrence form.
Form Gets or sets the form to be invoked. Inherited from FormShowingEventArgs.
ParentForm Gets the appointment editing form from which the Appointment Recurrence form is invoked.
SizeToContent Obsolete. This API is obsolete now. Inherited from FormShowingEventArgs.
ViewModel Gets or sets the View Model for the form which will be invoked. Inherited from FormShowingEventArgs.

#Remarks

Handle the RecurrenceFormShowing event to perform any actions before the Appointment Recurrence form is shown. For instance, a custom form can be substituted in place of the standard one (the FormShowingEventArgs.Form property). If you use your own custom Edit Appointment form and it is required to invoke the default Appointment Recurrence dialog from this form, handle the RecurrenceFormShowing event and set the RecurrenceFormEventArgs.Controller property to the appointment editing form's controller.

The Appointment Recurrence form can be invoked either by an end-user, or via the SchedulerControl.ShowRecurrenceForm method.

#Examples

This example demonstrates how to replace the standard Appointment Recurrence form with a custom one via the SchedulerControl.RecurrenceFormShowing event.

Set the FormShowingEventArgs.Form property to the instance of a class specifying the custom recurrence form with the passed AppointmentFormController controller of the Edit Appointment form (RecurrenceFormEventArgs.ParentForm) from which the Appointment Recurrence form is invoked.

See Also