Skip to main content

EditAppointmentFormEventArgs Class

Namespace: DevExpress.Xpf.Scheduler

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

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public class EditAppointmentFormEventArgs :
    EditFormShowingEventArgs

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.

The SchedulerControl.EditAppointmentFormShowing event occurs before the Edit Appointment form is invoked. The EditAppointmentFormEventArgs class introduces the EditAppointmentFormEventArgs.Appointment property, that specifies the appointment for which the form is shown.

The SchedulerControl.EditRecurrentAppointmentFormShowing event occurs before the Open Recurring Item dialog is invoked, when an end-user decides to edit a recurrent appointment. The Open Recurring Item dialog allows end-users to specify whether the whole series of recurring appointments should be edited or only the selected occurrence. The EditAppointmentFormEventArgs.Appointment property specifies the appointment occurrence for which the form is shown.

Note, that EditAppointmentFormEventArgs objects are automatically created, initialized and passed to the SchedulerControl.EditAppointmentFormShowing and SchedulerControl.EditRecurrentAppointmentFormShowing event handlers.

Example

This example demonstrates how to replace the standard Edit Appointment form with a custom one, and prevent end-users from resizing this form via the SchedulerControl.EditAppointmentFormShowing event.

using DevExpress.Xpf.Scheduler;
// ...

private void schedulerControl1_EditAppointmentFormShowing(object sender, EditAppointmentFormEventArgs e) {
    e.Form = new CustomAppointmentForm(this.schedulerControl1, e.Appointment);
    e.AllowResize = false;
}

Inheritance

Object
EventArgs
FormShowingEventArgs
DevExpress.Xpf.Scheduler.EditFormShowingEventArgs
EditAppointmentFormEventArgs
See Also