SchedulerControl.AppointmentDragOver Event

Raised repeatedly while the user drags appointments in the Scheduler control.

Namespace: DevExpress.WinUI.Scheduler

Assembly: DevExpress.WinUI.Scheduler.v21.1.dll

Declaration

public event EventHandler<AppointmentDragOverEventArgs> AppointmentDragOver

Event Data

The AppointmentDragOver event's data class is DevExpress.WinUI.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