Skip to main content
A newer version of this page is available. .

AppointmentItemDragDropEventArgs.ViewModels Property

Provides access to the list of View Models for dragged appointments.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public IList<AppointmentDragResizeViewModel> ViewModels { get; }

Property Value

Type Description
IList<AppointmentDragResizeViewModel>

A list of AppointmentDragResizeViewModel objects which are view models for dragged apointments.

Remarks

The ViewModels collection contains temporary view models created for each appointment that takes part in a drag-and-drop operation. The AppointmentDragResizeViewModel view model properties reflect the appointment property changes when the appointment is dragged. The original appointment for each view model is accessible using the AppointmentEditViewModelBase.Appointment property. When the drop operation is complete, the original appointment is updated with values obtained from view models and the ViewModels collection is cleared.

See Also