wpf-devexpress-dot-xpf-dot-scheduling-dot-dayview.md
Gets or sets the number of days that are simultaneously displayed within the Day View. This is a dependency property.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public int DayCount { get; set; }
Public Property DayCount As Integer
| Type | Description |
|---|---|
| Int32 |
A positive integer value specifying the number of days displayed by the Day View. The default is 1.
|
Use the DayCount property to specify the number of days simultaneously displayed within the Day View starting from the date defined by the SchedulerControl.Start property.
| DayCount = 2 | DayCount = 4 |
|---|---|
The following code snippets (auto-collected from DevExpress Examples) contain references to the DayCount 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>
x:Name="dayView1"
DayCount="2"
ShowWorkTimeOnly="True" />
x:Name="dayView1"
DayCount="2"
ResourcesPerPage="2"
x:Name="dayView"
DayCount="3"
ResourcesPerPage="3"
ActiveViewIndex="0" CustomAppointmentBackground="SchedulerControl_CustomAppointmentBackground">
<dxsch:DayView x:Name="dayView1" DayCount="2" ResourcesPerPage="2" TopRowTime="9:0:0"/>
<dxsch:SchedulerControl.DataSource>
See Also