Back to Devexpress

SchedulerControl.AppointmentResize Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-ed316c92.md

latest3.8 KB
Original Source

SchedulerControl.AppointmentResize Event

OBSOLETE

Use the SchedulerControl.StartAppointmentResize, SchedulerControl.ResizeAppointmentOver, SchedulerControl.CommitAppointmentResize properties instead (BC5117).

Occurs when an appointment’s interval is modified by dragging its borders.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
[Browsable(false)]
[Obsolete("Use the SchedulerControl.StartAppointmentResize, SchedulerControl.ResizeAppointmentOver, SchedulerControl.CommitAppointmentResize properties instead (BC5117).", false)]
public event AppointmentItemResizeEventHandler AppointmentResize
vb
<Browsable(False)>
<Obsolete("Use the SchedulerControl.StartAppointmentResize, SchedulerControl.ResizeAppointmentOver, SchedulerControl.CommitAppointmentResize properties instead (BC5117).", False)>
Public Event AppointmentResize As AppointmentItemResizeEventHandler

Event Data

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

PropertyDescription
AllowGets or sets whether the appointment can be resized.
HitIntervalRetrieves the datetime range to which the appointment’s side is moved.
HitResourceGets the resource assigned to cells to which an appointment’s side is moved.
ResizedSideIndicates which appointment side is being moved when the appointment is resized.
StateIndicates the stage of the resize action.
ViewModelProvides access to the View Model for the resized appointment.

Remarks

The event argument provides an information on a stage of resizing action, 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. The AppointmentItemResizeEventArgs.ViewModel property provides access to the modified appointment.

The original appointment (before resizing) is accessible using the AppointmentEditViewModelBase.Appointment property of the AppointmentDragResizeViewModel object contained in the AppointmentItemDragDropEventArgs.ViewModels collection.

To cancel resizing, set the AppointmentItemResizeEventArgs.Allow property to false.

See Also

AppointmentResizeMode

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace