DayView.Days Property
Gets or sets the days displayed in the DayView.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
IEnumerable<DateTime> | An IEnumerable<T><DateTime,> list of dates displayed in a view. |
Remarks
The Days property allows you to specify non-consecutive dates to display in the DayView. In an application with a DateNavigator control it allows you to obtain a list of days selected by the end-user.
Note
Navigating the scheduler changes the Days list to a contiguous sequence of dates.
Example
This example implements a custom KeyToCommand behavior to handle Day View navigation. The view displays seven days, Saturday and Sunday excluded. A custom set of days is assigned to the DayView.Days
property.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-hide-non-working-days-in-the-day-view-using-custom-commands-and-key-handlers-t608137.
<dxmvvm:Interaction.Behaviors>
<dxmvvm:KeyToCommand Command="{DXCommand Execute='MyMoveLeft(@e(scheduler))'}" KeyGesture="Left" />
<dxmvvm:KeyToCommand Command="{DXCommand Execute='MyMoveRight(@e(scheduler))'}" KeyGesture="Right" />
</dxmvvm:Interaction.Behaviors>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Days 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.