Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataSource.CreateSourceObject Event

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

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public event CreateSourceObjectEventHandler CreateSourceObject

#Event Data

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

Property Description
Instance Gets or sets the appointment’s source object.
Item Obsolete. Gets the newly created appointment.
ItemType Returns 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