DateNavigator
Overview
The DateNavigator control is an editor that allows end-users to select DateTime values.
The DateNavigator control offers the following features.
Easy date navigation
The DateNavigator control allows end-users to switch between calendar views at runtime. The following views are available.
- Years Range view
- Years view
- Year view
- Month view
To specify the default view, use the DateNavigator.CalendarView property.
Multiple dates selection
The DateNavigator control allows end-users to select multiple dates.
Special dates management
The DateNavigator control allows you to manage and highlight special dates using the following properties.
Customizable first day of the week
You can specify the required first day of the week using the DateNavigator.FirstDayOfWeek property.
Optional Today button
The Today button can be used to move focus to the current date in just one click. Use the DateNavigator.ShowTodayButton property to control the availability of the Today button.
Declaration
To add the DateNavigator control to a Window, drag it from the Toolbox.
The following sample demonstrates how to create a DateNavigator using XAML markup.
<dxe:DateNavigator HighlightHolidays="False" IsMultiSelect="False" FirstDayOfWeek="Sunday" CalendarView="Year"/>