SchedulerControl.RecurrenceFormShowing Event
Occurs before the Appointment Recurrence form is invoked.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
#Declaration
#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 |
---|---|
Allow |
Gets or sets a value indicating whether end-users are allowed to resize the form.
Inherited from Form |
Appointment |
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 Form |
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 Form |
Parent |
Gets the appointment editing form from which the Appointment Recurrence form is invoked. |
Size |
Obsolete. This API is obsolete now.
Inherited from Form |
View |
Gets or sets the View Model for the form which will be invoked.
Inherited from Form |
#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.