Back to Devexpress

SchedulerControl.CustomAllowAppointmentDrag Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-33b80cb2.md

latest2.7 KB
Original Source

SchedulerControl.CustomAllowAppointmentDrag Event

Occurs when attempting to drag an appointment to another time interval.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public event AppointmentItemOperationEventHandler CustomAllowAppointmentDrag
vb
Public Event CustomAllowAppointmentDrag As AppointmentItemOperationEventHandler

Event Data

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

PropertyDescription
AllowGets or sets whether performing a particular action is allowed.
AppointmentGets the appointment for which the element is raised. Inherited from AppointmentItemEventArgs.
RecurringGets whether the target appointment is recurring.

Remarks

Handle the CustomAllowAppointmentDrag event and sets its AppointmentItemOperationEventArgs.Allow property to manage a particular case and specify whether to allow an end-user to drag an appointment. If you do not specify the required behavior manually, the SchedulerControl.AllowAppointmentDrag manages whether creating new appointments is allowed.

The appointment to be dragged uses the AppointmentItemEventArgs.Appointment property.

Set the AppointmentItemOperationEventArgs.Allow property to false to prevent an appointment from being dragged.

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace