Back to Devexpress

DayView.DayCount Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-dayview.md

latest4.4 KB
Original Source

DayView.DayCount Property

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

Declaration

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

Property Value

TypeDescription
Int32

A positive integer value specifying the number of days displayed by the Day View. The default is 1.

|

Remarks

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 = 2DayCount = 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

xml
TimeRegionVisibility="{DXBinding Expr='HighlightLunchHours? $dxsch:TimeRegionVisibility.Always : $dxsch:TimeRegionVisibility.Never'}"
    SnapToCellsMode="Never" DayCount="5" TimeScale="00:30:00" />
<dxsch:SchedulerControl.DataSource>

wpf-scheduler-implement-custom-mapping-converter-for-color-values/CS/ColorMappingExample/MainWindow.xaml#L65

xml
x:Name="dayView1"
DayCount="2"
ShowWorkTimeOnly="True" />

wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/CS/DXSchedulerSelection/MainWindow.xaml#L53

xml
x:Name="dayView1"
DayCount="2"
ResourcesPerPage="2"

wpf-scheduler-specify-custom-edit-and-recurrence-dialogs/CS/CustomMvvmFormWithRecurrenceExample/MainWindow.xaml#L23

xml
x:Name="dayView"
DayCount="3"
ResourcesPerPage="3"

wpf-scheduler-handle-customappointmentbackground-event-to-change-appointment-background/CS/CustomAppointmentBackground/MainWindow.xaml#L16

xml
ActiveViewIndex="0" CustomAppointmentBackground="SchedulerControl_CustomAppointmentBackground">
<dxsch:DayView x:Name="dayView1" DayCount="2" ResourcesPerPage="2" TopRowTime="9:0:0"/>
<dxsch:SchedulerControl.DataSource>

See Also

Start

DayView Class

DayView Members

DevExpress.Xpf.Scheduling Namespace