Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FixedTimeScale Class

A time scale in the Timeline view whose time cell value is set to a custom fixed interval.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public class FixedTimeScale :
    TimeScaleBase

#Remarks

To create a custom time scale in the Timeline View, instantiate the FixedTimeScale class, specify its time cell value using the FixedTimeScale.Scale property and a text to display using the TimeScaleBase.Caption property. Add a custom time scale to the TimelineView.TimeScales collection.

The following example demonstrates how to specify a custom set of time scales for the Timeline View:

<dxsch:TimelineView x:Name="timelineView" IntervalCount="8">
    <dxsch:TimelineView.TimeScales>
        <dxsch:TimeScaleWeek x:Name="scaleWeek" IsEnabled="False"/>
        <dxsch:TimeScaleWorkDay x:Name="scaleWorkDay" IsEnabled="True"/>
        <dxsch:TimeScaleWorkHour x:Name="scaleWorkHour" IsEnabled="True"/>
        <dxsch:FixedTimeScale x:Name="scaleFixedTime" Caption ="30 minutes" Scale="00:30:00" IsEnabled="True" ShowHeaders="False"/>
    </dxsch:TimelineView.TimeScales>
</dxsch:TimelineView>

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

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.

#Implements

#Inheritance

Object
DispatcherObject
DependencyObject
ContentElement
FrameworkContentElement
DXFrameworkContentElement
DevExpress.Xpf.Scheduling.Internal.SchedulerFrameworkComponent
TimeScaleBase
FixedTimeScale
See Also