Skip to main content
All docs
V24.1

AppointmentViewModel(AppointmentItem, ResourceItem, ObservableCollection<ResourceItem>, AppointmentLabelItem, AppointmentStatusItem, Boolean, DateTimeRange) Constructor

Initializes a new instance of the AppointmentViewModel class with specified settings.

Namespace: DevExpress.Xpf.Scheduling.VisualData

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public AppointmentViewModel(
    AppointmentItem appointment,
    ResourceItem resource,
    ObservableCollection<ResourceItem> resources,
    AppointmentLabelItem label,
    AppointmentStatusItem status,
    bool isSelected,
    DateTimeRange visibleInterval
)

Parameters

Name Type Description
appointment AppointmentItem

The source appointment.

resource ResourceItem

The resource associated with the appointment.

resources ObservableCollection<ResourceItem>

The collection of all resources associated with the appointment.

label AppointmentLabelItem

The label object associated with the appointment.

status AppointmentStatusItem

The status object associated with the appointment.

isSelected Boolean

true if the appointment is selected; otherwise, false.

visibleInterval DateTimeRange

The time interval displayed in the view.

See Also