SchedulerControl.EditAppointmentFormShowing Event

Occurs before the Edit Appointment form is invoked.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public event AppointmentFormEventHandler EditAppointmentFormShowing
Public Event EditAppointmentFormShowing As AppointmentFormEventHandler

Event Data

The EditAppointmentFormShowing event's data class is EditAppointmentFormEventArgs. The following properties provide information specific to this event:

Property Description
AllowResize Gets or sets a value indicating whether end users are allowed to resize the form. Inherited from FormShowingEventArgs.
Appointment Gets the appointment for which the dialog will be shown.
Cancel Gets or sets the value indicating whether to cancel invoking the form. Inherited from FormShowingEventArgs.
Form Gets or sets the form which will be invoked. Inherited from FormShowingEventArgs.
OpenRecurrenceDialog Gets the value indicating whether the Appointment Recurrence form is displayed on the top of the Edit Appointment form.
SizeToContent Obsolete. This property is obsolete. Inherited from FormShowingEventArgs.
ViewModel Gets or sets the View Model for the form which will be invoked. Inherited from FormShowingEventArgs.

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.

Handle the EditAppointmentFormShowing event to perform any actions before the Edit Appointment form is shown. For instance, a custom form can be substituted in place of the standard one.

This form can be invoked either by an end-user, or via the SchedulerControl.ShowEditAppointmentForm method. Note that the appointment which will be edited in this form can be specified via the EditAppointmentFormEventArgs.Appointment property.

Examples

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;
}
See Also