SchedulerStorage.AppointmentChanging Event
Fires when an appointment's property is changing.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
#Declaration
#Event Data
The AppointmentChanging event's handler receives an argument of the PersistentObjectCancelEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel | Gets or sets whether the operation performed on the processed event should be canceled. |
Object |
Gets the persistent object for which the event was raised.
Inherited from Persistent |
#Remarks
The AppointmentChanging event is raised when changing an appointment's property. The appointment whose property is changed is identified by the event parameter's PersistentObjectEventArgs.Object property. Set the PersistentObjectCancelEventArgs.Cancel to true, to roll back changes and cancel the operation.
NOTE
Do not modify the appointment's data source or data binding within this event handler. It results in the current appointment being disposed of, and consequently, an unhandled exception occurs.