Skip to main content
A newer version of this page is available. .

SchedulerControl.AppointmentDrop Event

Occurs when an appointment is dropped onto the Scheduler control.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public event AppointmentDragEventHandler AppointmentDrop

Event Data

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

Property Description
AdditionalAppointments Provides access to the collection of the additional dragged appointments.
Allow Specifies whether the appointment can be dragged along the time cells.
CopyEffect Indicates whether the drop effect in a drag-and-drop appointment operation is Copy.
EditedAppointment Gets the appointment being modified in the drag-and-drop event.
ForceUpdateFromStorage Gets or sets whether the View is forced to query appointments from the storage.
HitInterval Gets the time interval represented by the time cell to which an appointment was dragged.
HitResource Gets the resource to which an appointment was dragged.
NewAppointmentResourceIds Gets or sets the IDs of resources for a new appointment.
SourceAppointment Gets the source appointment in the drag-and-drop event.

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Use the AppointmentDrop event to manage, with the drag-and-drop action, appointments within the Scheduler control. Information, which is provided by the event’s argument properties, allows you to deny, cancel or handle specifically the event.

For instance, you have access to the appointment before dragging (the AppointmentDragEventArgs.SourceAppointment property), to the time interval where the appointment was dropped (the AppointmentDragEventArgs.HitInterval property), the resource associated with a new appointment location (the AppointmentDragEventArgs.HitResource property). The AppointmentDragEventArgs.NewAppointmentResourceIds property can be used for assignment of resources to a relocated appointment.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentDrop event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also