Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

In This Article

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

Namespace: DevExpress.Xpf.Scheduling.VisualData

Assembly: DevExpress.Xpf.Scheduling.v24.2.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