Back to Devexpress

DataSource.CreateSourceObject Event

wpf-devexpress-dot-xpf-dot-scheduling-dot-datasource-1d7c3e4b.md

latest1.9 KB
Original Source

DataSource.CreateSourceObject Event

Allows you to set the source object for a newly created appointment.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public event CreateSourceObjectEventHandler CreateSourceObject
vb
Public Event CreateSourceObject As CreateSourceObjectEventHandler

Event Data

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

PropertyDescription
InstanceGets or sets the appointment’s source object.
ItemObsolete. Gets the newly created appointment.
ItemTypeReturns the type of the created source object.

Remarks

When a new appointment is created, the scheduler automatically creates an object that represents an appointment in the bound data source and performs an Insert operation to store appointment data. The source object is available using the AppointmentItem.SourceObject property. However, you can create a source object manually by handling the CreateSourceObject event.

See Also

DataSource Class

DataSource Members

DevExpress.Xpf.Scheduling Namespace