RecurrenceFormEventArgs.Controller Property

Gets or sets the controller providing settings which are required to edit appointment recurrence in the Appointment Recurrence form.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public AppointmentFormController Controller { get; set; }
Public Property Controller As AppointmentFormController

Property Value

Type Description
AppointmentFormController

An AppointmentFormController object.

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Specify the Controller property to invoke the default Appointment Recurrence dialog from the custom Edit Appointment form (for an example, refer to How to: Invoke the Default Appointment Recurrence Dialog from a Custom Edit Appointment Form (legacy).

Examples

This example demonstrates how to handle the SchedulerControl.RecurrenceFormShowing event to invoke the default Appointment Recurrence dialog from the custom Edit Appointment form. To do this, set the RecurrenceFormEventArgs.Controller property to the AppointmentFormController instance, which is created within the appointment editing form initialization code. To get the object specifying the Edit Appointment form from which the Appointment Recurrence form is invoked, use the RecurrenceFormEventArgs.ParentForm property.

Private Sub schedulerControl1_RecurrenceFormShowing(sender As Object, _
                                                    e As RecurrenceFormEventArgs)
    Dim customForm As CustomAppointmentForm = TryCast(e.ParentForm, CustomAppointmentForm)
    e.Controller = customForm.Controller
End Sub
See Also