Skip to main content
A newer version of this page is available. .

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.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduler, DevExpress.Wpf.Scheduler

Declaration

public UserControl ParentForm { get; }

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.

Example

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.

View Example

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the ParentForm 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.

See Also