wpf-devexpress-dot-xpf-dot-scheduling-dot-dayviewbase-3476cb1a.md
Gets or sets the time interval for time slots in the scheduling area.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public TimeSpan TimeScale { get; set; }
Public Property TimeScale As TimeSpan
| Type | Description |
|---|---|
| TimeSpan |
A TimeSpan value that is the time slot interval.
|
Use the TimeScale property to specify the time interval, which is the amount by which the scheduling area’s time scale increments. This value determines the time cell interval and applies it to the TimeRuler element. A new setting of the TimeScale property creates a new division of hours in the time ruler and a new scheduler area gridding.
The following code snippets (auto-collected from DevExpress Examples) contain references to the TimeScale 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-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L30
TimeRegionVisibility="{DXBinding Expr='HighlightLunchHours? $dxsch:TimeRegionVisibility.Always : $dxsch:TimeRegionVisibility.Never'}"
SnapToCellsMode="Never" DayCount="5" TimeScale="00:30:00" />
<dxsch:SchedulerControl.DataSource>
<dxsch:SchedulerControl x:Name="scheduler">
<dxsch:DayView x:Name="dayView" ShowWorkTimeOnly="True" TimeScale="00:30:00" TimeRulersSource="{Binding TimeRulers}" TimeRulerTemplate="{StaticResource TimeRulerGeneratorTemplate}"/>
</dxsch:SchedulerControl>
See Also