Back to Devexpress

SchedulerControl.AppointmentDragMode Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-3a176c6f.md

latest3.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public AppointmentDragResizeMode AppointmentDragMode { get; set; }
vb
Public Property AppointmentDragMode As AppointmentDragResizeMode

Property Value

TypeDescription
AppointmentDragResizeMode

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

|

Available values:

NameDescription
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.

wpf-scheduler-process-appointment-drag-drop-resize-operations/CS/SchedulerDragDropResizeExample/MainWindow.xaml#L39

xml
<dxsch:SchedulerControl x:Name="scheduler" GroupType="Resource" AppointmentDragMode="SnapToCell">
    <dxmvvm:Interaction.Behaviors>

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace