Back to Devexpress

SchedulerControl.ResourceItems Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-76e17c45.md

latest2.5 KB
Original Source

SchedulerControl.ResourceItems Property

Provides access to the resources for appointments.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ResourceItemCollection ResourceItems { get; }
vb
Public ReadOnly Property ResourceItems As ResourceItemCollection

Property Value

TypeDescription
ResourceItemCollection

A ResourceItemCollection object that is the collection of resources.

|

Remarks

Use the ResourceItems property to obtain the collection of resources for appointments.

Specify the SchedulerControl.DataSource and set the required DataSource.ResourceMappings to load resources from a data source.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResourceItems 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-specify-custom-work-time-intervals/CS/CustomWorkTimeExample/MainWindow.xaml#L32

xml
ResourceColors="{StaticResource MyResourceColors}">
<dxsch:SchedulerControl.ResourceItems>
    <dxsch:ResourceItem Caption="One" Id="1" />

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace