Skip to main content

SchedulerControl.AppointmentResizing Event

Occurs when an end-user begins modifying the appointment's interval by dragging its border with the mouse.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v14.2.dll

#Declaration

public event AppointmentResizeEventHandler AppointmentResizing

#Event Data

The AppointmentResizing event's handler receives an argument of the AppointmentResizeEventArgs type. The following properties provide information specific to this event:

Property Description
Allow Specifies whether the appointment can be resized.
EditedAppointment Gets the appointment being edited in the resize event.
Handled Gets or sets whether the resize operation is handled, and therefore no default processing is required.
HitInterval Gets the time interval represented by the time cell to which the appointment's side is moved.
HitResource Gets the resource assigned to cells to which an appointment's side is moved.
ResizedSide Indicates which appointment side is being moved when the appointment is resized.
SourceAppointment Gets the source appointment in the resize event.

#Remarks

The event argument provides information on an appointment before and after resizing, the resource and time interval associated with time cells to which the appointment's edge is moved, and also indicates which side of the appointment is moved.

NOTE

To cancel appointment resizing, handle the SchedulerControl.AppointmentResized event, and set the AppointmentResizeEventArgs.Allow to false and AppointmentResizeEventArgs.Handled to true in the handler's code.

The OptionsCustomization.AllowAppointmentResize value takes priority over the AppointmentResizing event. If it is set to AppointmentConflictsMode.Custom, then the SchedulerControl.AllowAppointmentResize occurs before the AppointmentResizing event. Dragging the appointment border with the mouse results in a series of AppointmentResizing events, followed by a single SchedulerControl.AppointmentResized event.

See Also