DayViewBase.SnapToCellsMode Property

Gets or sets the method of snapping appointments to time cells in the Day View, Work Week View, and Week View. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

public SnapToCellsMode SnapToCellsMode { get; set; }
Public Property SnapToCellsMode As SnapToCellsMode

Property Value

Type Description
SnapToCellsMode

A SnapToCellsMode enumeration member specifying the snap method.

Remarks

The images below demonstrate different snap modes for the Day View:

  • SnapToCellsMode.Auto

    An appointment is stretched to cell borders only if the appointment's start and end are located in the same cell or in adjacent cells.

    WPFScheduler_DayView_SnapToCells_Auto

  • SnapToCellsMode.Always

    An appointment is always stretched to cell borders so that it occupies the entire cell or several cells.

    WPFScheduler_DayView_SnapToCells_Always

  • SnapToCellsMode.Never

    The appointment height is proportional to its duration. If an appointment's duration is less than the current time cell interval, its height is defined by the DayViewBase.AppointmentMinHeight property value.

    WPFScheduler_DayView_SnapToCells_Never

See Also