RecurrenceFormEventArgs.ParentForm Property

Gets the appointment editing form from which the Appointment Recurrence form is invoked.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public UserControl ParentForm { get; }
Public ReadOnly Property ParentForm As UserControl

Property Value

Type Description
UserControl

A UserControl object specifying the Edit Appointment form.

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.

Use the ParentForm property to access the instance of the class specifying the appointment editing form. This object's controller should be passed as a parameter to the constructor of the class specifying the custom Appointment Recurrence form, or set to the RecurrenceFormEventArgs.Controller property to use the default recurrence form.

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.

<dxsch:SchedulerControl Name="schedulerControl1" 
                        HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                        ActiveViewType="Week"
                        GroupType="Resource"
                        RecurrenceFormShowing="schedulerControl1_RecurrenceFormShowing">
See Also