Back to Devexpress

TimelineView.IntervalCount Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-timelineview-41d727a0.md

latest2.6 KB
Original Source

TimelineView.IntervalCount Property

Gets or sets the number of time intervals displayed in the timeline view. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public int IntervalCount { get; set; }
vb
Public Property IntervalCount As Integer

Property Value

TypeDescription
Int32

An integer value that specifies how many time intervals are displayed at once.

|

Remarks

Use the IntervalCount property to specify the number of time intervals displayed in the scheduling area. The type of interval (month, day, hour) corresponds to the most detailed enabled time scale.

Note

The IntervalCount property is not in effect if the ViewMode property is set to Standard.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IntervalCount 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-generate-time-scales-from-view-model-collection/CS/WpfSchedulerTimelineScalesTemplate/MainWindow.xaml#L41

xml
<dxsch:SchedulerControl x:Name="scheduler" GroupType="None" Start="{Binding Start, Mode=TwoWay}" AllowAppointmentConflicts="True">
    <dxsch:TimelineView x:Name="timelineView" IntervalCount="8" TimeScalesSource="{Binding TimeScales}" TimeScaleTemplateSelector="{StaticResource TimeScaleTemplateSelector}"/>
    <dxsch:SchedulerControl.DataSource>

See Also

TimelineView Class

TimelineView Members

DevExpress.Xpf.Scheduling Namespace