TimelineView.TimeScales Property

Gets or sets the time intervals displayed in the Timeline view.

Namespace: DevExpress.Xpf.Scheduling

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


public TimeScaleCollection TimeScales { get; set; }

Property Value

Type Description

A TimeSpanCollection object that is a collection of time intervals.


If you define multiple time scales, the scheduler displays the time scale that has the shortest duration of a single division:

Duration = ScaleUnit * UnitCount

Use the MinWidth property to specify the minimum allowed width of a single division. A time scale can only be shown if the Zoom value is small enough to accommodate the duration of at least a single division:

MinWidth < Duration / Zoom

The code snippet below illustrates how to define two time scales:

        <!--duration of a single scale division is 1 hour-->
        <dxsch:TimeScale ScaleUnit="Hour" UnitCount="1" MinWidth="0"/>
        <!--duration of a single scale division is 3 minutes-->
        <dxsch:TimeScale ScaleUnit="Minute" UnitCount="30" MinWidth="60"/>

The following image shows the result:

The TimeScaleMaxCount property specifies the maximum number of time scales displayed by the Scheduler. The image below illustrates the Timeline View with three time scales.

See Also