Back to Devexpress

SchedulerControl.AppointmentDrop Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-325ce751.md

latest3.7 KB
Original Source

SchedulerControl.AppointmentDrop Event

OBSOLETE

Use the DropAppointment event instead (BC4918).

Occurs when an appointment is dropped onto 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.DropAppointment event instead (BC4918).", false)]
public event AppointmentItemDragDropEventHandler AppointmentDrop
vb
<Browsable(False)>
<Obsolete("Use the SchedulerControl.DropAppointment event instead (BC4918).", False)>
Public Event AppointmentDrop As AppointmentItemDragDropEventHandler

Event Data

The AppointmentDrop 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.

You have access to the time interval where the appointment was dropped (AppointmentItemDragDropEventArgs.HitInterval) and the resource associated with a new appointment location (AppointmentItemDragDropEventArgs.HitResource).

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace