Back to Devexpress

SchedulerControl.AppointmentResizeMode Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-a60ea501.md

latest2.7 KB
Original Source

SchedulerControl.AppointmentResizeMode Property

Specifies how an appointment fits in the time cell(s) when modified by dragging its borders. 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 AppointmentResizeMode { get; set; }
vb
Public Property AppointmentResizeMode As AppointmentDragResizeMode

Property Value

TypeDescription
AppointmentDragResizeMode

One of the AppointmentDragResizeMode enumeration values indicating the appointment’s resize 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

Use the AppointmentResizeMode property to specify the position of appointment borders when the appointment is resized.

Set the AppointmentResizeMode property to SnapToCells to snap borders to time cells, and to Precise to place them to the exact position they are moved to.

Important

The AppointmentResizeMode 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.

View Example: Process Appointment Drag/Drop/Resize Operations

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace