Skip to main content

DayView.Days Property

Gets or sets the days displayed in the DayView.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v23.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>

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.

See Also