Skip to main content

AppointmentItemDragDropEventArgs.ViewModels Property

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

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

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