Back to Devexpress

CreateSourceObjectEventArgs.Instance Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-createsourceobjecteventargs.md

latest2.4 KB
Original Source

CreateSourceObjectEventArgs.Instance Property

Gets or sets the appointment’s source object.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public object Instance { get; set; }
vb
Public Property Instance As Object

Property Value

TypeDescription
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

csharp
if(args.ItemType == ItemType.AppointmentItem)
        args.Instance = new AppointmentEntity();
}

wpf-scheduler-load-data-on-demand/VB/CommonDbContext/ViewModels/SchedulingViewModel.vb#L18

vb
If args.ItemType = ItemType.AppointmentItem Then
    args.Instance = New AppointmentEntity()
End If

See Also

CreateSourceObjectEventArgs Class

CreateSourceObjectEventArgs Members

DevExpress.Xpf.Scheduling Namespace