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.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
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).
Example
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.
<dxsch:SchedulerControl Name="schedulerControl1"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
ActiveViewType="Week"
GroupType="Resource"
FormCustomizationUsingMVVMLocal="False"
EditAppointmentFormShowing="schedulerControl1_EditAppointmentFormShowing"
RecurrenceFormShowing="schedulerControl1_RecurrenceFormShowing">
private void schedulerControl1_RecurrenceFormShowing(object sender, RecurrenceFormEventArgs e) {
CustomAppointmentForm customForm = e.ParentForm as CustomAppointmentForm;
e.Controller = customForm.Controller;
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Controller property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.