Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerControl.CustomAllowAppointmentResize Event

Occurs when attempting to resize the appointment.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public event AppointmentItemOperationEventHandler CustomAllowAppointmentResize

#Event Data

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

Property Description
Allow Gets or sets whether performing a particular action is allowed.
Appointment Gets the appointment for which the element is raised. Inherited from AppointmentItemEventArgs.
Recurring Gets whether the target appointment is recurring.

#Remarks

Handle the CustomAllowAppointmentResize event and sets its AppointmentItemOperationEventArgs.Allow property to specify a particular case when an end-user is allowed to resize the appointment. If you do not specify the required behavior manually, the SchedulerControl.AllowAppointmentResize property manages whether deleting appointments is allowed.

Access the appointment to be resized using the AppointmentItemEventArgs.Appointment property. To prevent the appointment from being resized, set the AppointmentItemOperationEventArgs.Allow property to false.

See Also