Back to Devexpress

SchedulerControl.BeforeAppointmentItemDelete Event

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

latest2.4 KB
Original Source

SchedulerControl.BeforeAppointmentItemDelete Event

OBSOLETE

Use the AppointmentRemoving event instead (t809526).

Occurs before deleting an appointment and allows you to cancel the deletion.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
[Browsable(false)]
[Obsolete("Use the SchedulerControl.AppointmentRemoving event instead (t809526).", false)]
public event AppointmentItemCancelEventHandler BeforeAppointmentItemDelete
vb
<Browsable(False)>
<Obsolete("Use the SchedulerControl.AppointmentRemoving event instead (t809526).", False)>
Public Event BeforeAppointmentItemDelete As AppointmentItemCancelEventHandler

Event Data

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

PropertyDescription
AppointmentGets the appointment for which the element is raised. Inherited from AppointmentItemEventArgs.
CancelGets or sets a value indicating whether deleting the specified appointment should be canceled.

Remarks

Use the AppointmentItemEventArgs.Appointment property to get an appointment being deleted. To cancel the deletion, set the AppointmentItemCancelEventArgs.Cancel property to true.

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace