Skip to main content
A newer version of this page is available. .

DayView.Days Property

Gets or sets the days displayed in the DayView.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public IEnumerable<DateTime> Days { get; set; }

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.

View Example

<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>
See Also