Back to Devexpress

SchedulerControl.AppointmentDrag Event

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

latest3.3 KB
Original Source

SchedulerControl.AppointmentDrag Event

OBSOLETE

Use the DragAppointmentOver event instead (BC4918).

Occurs when an appointment is dragged above the SchedulerControl.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
[Browsable(false)]
[Obsolete("Use the SchedulerControl.DragAppointmentOver event instead (BC4918).", false)]
public event AppointmentItemDragDropEventHandler AppointmentDrag
vb
<Browsable(False)>
<Obsolete("Use the SchedulerControl.DragAppointmentOver event instead (BC4918).", False)>
Public Event AppointmentDrag As AppointmentItemDragDropEventHandler

Event Data

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

PropertyDescription
AllowSpecifies whether the appointment can be dragged or dropped along the time cells.
CopyEffectIndicates whether the appointment is copied when drag-and-dropping it to another location.
HitIntervalGets the datetime range represented by the time cell to which an appointment is dragged.
HitResourceIndicates the resource to which an appointment is dragged.
IsExternalDragDropIndicates whether the appointment is dragged-and-dropped from the external component.
ViewModelsProvides access to the list of View Models for dragged appointments.

Remarks

You can cancel the drag-and-drop operation by setting the AppointmentItemDragDropEventArgs.Allow property to false in the event handler.

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

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace