Back to Devexpress

AppointmentResourceEdit Class

wpf-devexpress-dot-xpf-dot-scheduling-dot-editors-f4237d87.md

latest3.9 KB
Original Source

AppointmentResourceEdit Class

A combo box editor used to select a single resource.

Namespace : DevExpress.Xpf.Scheduling.Editors

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
[DXLicenseWpf]
public class AppointmentResourceEdit :
    ItemComboBoxEdit
vb
<DXLicenseWpf>
Public Class AppointmentResourceEdit
    Inherits ItemComboBoxEdit

Remarks

The AppointmentResourceEdit is a combo box editor which displays resource captions (ResourceItem.Caption) and squares filled with the color determined by the ResourceItem.Color property (or obtained from the SchedulerControl.ResourceBrushSchemas collection, if the Color property is not assigned). Set the ItemComboBoxEdit.Scheduler property to the SchedulerControl instance to display resources from the SchedulerControl.ResourceItems collection.

The AppointmentResourceEdit control with two sample resources is shown below.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentResourceEdit class.

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-edit-and-recurrence-dialogs/CS/CustomMvvmFormWithRecurrenceExample/HospitalAppointmentWindow.xaml#L83

xml
<dxlc:LayoutItem Label="Doctor:">
    <dxsch:AppointmentResourceEdit
        EditValue="{Binding Resource, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"

Inheritance

Show 16 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control BaseEdit TextEditBase TextEdit ButtonEdit PopupBaseEdit LookUpEditBase ComboBoxEdit ItemComboBoxEdit AppointmentResourceEdit

See Also

AppointmentResourceEdit Members

DevExpress.Xpf.Scheduling.Editors Namespace