Skip to main content

DateNavigator.FirstDayOfWeek Property

Gets or sets the day of the week from which the Date Navigator's week starts.

Namespace: DevExpress.Xpf.Editors.DateNavigator

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public DayOfWeek? FirstDayOfWeek { get; set; }

#Property Value

Type Description
Nullable<DayOfWeek>

A Nullable<T><DayOfWeek,> object.

#Remarks

Use the FirstDayOfWeek property to specify the particular day of the week from which weeks in the DateNavigator control should be started.

DateNavigator_FirstDayOfWeek

NOTE

If the DateNavigator control is bound to SchedulerControl, the OptionsView.FirstDayOfWeek property will have priority over FirstDayOfWeek. To obtain the day of week from which the Date Navigator's weeks are actually started, use the DateNavigator.ActualFirstDayOfWeek property.

#Examples

This example demonstrates how to customize the DateNavigator control. To do this, it is necessary to modify the DateNavigator object.

<dxe:DateNavigator HighlightSpecialDates="True"
                   HighlightHolidays="True"
                   ShowTodayButton="True"
                   ShowWeekNumbers="True"
                   WeekNumberRule="FirstDay"
                   FirstDayOfWeek="Sunday"
                   IsMultiSelect="True"
                   MaxSelectionLength="3"/>
See Also