Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Scheduling

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentDragMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also