SchedulerControl.AppointmentDragMode Property

Specifies how an appointment fits in the time cell(s) when dragging it to another time interval. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public AppointmentDragResizeMode AppointmentDragMode { get; set; }

Property Value

Type Description
AppointmentDragResizeMode

One of the AppointmentDragResizeMode enumeration values indicating the appointment’s drag mode.

Available values:

Name Description
SnapToCell

Appointment Start and End borders are snapped to time cells which forces the end-user to set the time interval round to the nearest value determined by the DayViewBase.TimeScale property.

Precise

Appointment moves smoothly, its Start and End borders are moved pixel by pixel which enables the end-user to set the time interval precisely.

Remarks

Important

The AppointmentDragMode property value has effect only if the SnapToCell option (the DayViewBase.SnapToCellsMode property or the TimelineView.SnapToCellsMode property, depending on the View) is set to SnapToCellsMode.Never.

Tip

A complete sample project is available in the DevExpress Code Examples database at https://supportcenter.devexpress.com/ticket/details/t605963/how-to-handle-appointment-drag-drop-resize-operations.

See Also