Back to Devexpress

SchedulerControl.CustomAllowAppointmentDragBetweenResources Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-f6ce5d92.md

latest2.9 KB
Original Source

SchedulerControl.CustomAllowAppointmentDragBetweenResources Event

Occurs when attempting to drag the appointment.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public event AppointmentItemOperationEventHandler CustomAllowAppointmentDragBetweenResources
vb
Public Event CustomAllowAppointmentDragBetweenResources As AppointmentItemOperationEventHandler

Event Data

The CustomAllowAppointmentDragBetweenResources 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 CustomAllowAppointmentDragBetweenResources event and sets its AppointmentItemOperationEventArgs.Allow property to specify a particular case when an end-user is allowed to drag an appointment to another resource’s area. If you do not specify the required behavior manually, the SchedulerControl.AllowAppointmentDragBetweenResources property manages whether dragging appointments is allowed.

Access the appointment to be dragged using the AppointmentItemEventArgs.Appointment property. To prevent an appointment from being dragged to another resource, set the AppointmentItemOperationEventArgs.Allow property to false.

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace