wpf-devexpress-dot-xpf-dot-scheduling-dot-createsourceobjecteventargs.md
Gets or sets the appointment’s source object.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public object Instance { get; set; }
Public Property Instance As Object
| Type | Description |
|---|---|
| Object |
An object that represents an appointment in the data source.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Instance property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-scheduler-load-data-on-demand/CS/CommonDbContext/ViewModels/SchedulingViewModel.cs#L18
if(args.ItemType == ItemType.AppointmentItem)
args.Instance = new AppointmentEntity();
}
wpf-scheduler-load-data-on-demand/VB/CommonDbContext/ViewModels/SchedulingViewModel.vb#L18
If args.ItemType = ItemType.AppointmentItem Then
args.Instance = New AppointmentEntity()
End If
See Also
CreateSourceObjectEventArgs Class