SchedulerControl.AppointmentDragOver Event
Raised repeatedly while the user drags appointments in the Scheduler control.
Namespace: DevExpress.UI.Xaml.Scheduler
Assembly: DevExpress.UI.Xaml.Scheduler.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Event Data
The AppointmentDragOver event's data class is DevExpress.UI.Xaml.Scheduler.AppointmentDragOverEventArgs.
Remarks
Use the AcceptedOperation event parameter to limit the actions available to the user. See the example below.
private void Scheduler_AppointmentDragOver(object sender, AppointmentDragOverEventArgs e) {
foreach (AppointmentItem item in e.DraggingAppointments)
if ((item.Start.Hour < 7) || (item.Start.Hour > 20) || (item.End.Hour > 20))
e.AcceptedOperation = Windows.ApplicationModel.DataTransfer.DataPackageOperation.None;
}
See Also