Skip to main content

DateNavigator.WeekNumberRule Property

Gets or sets the rule which specifies the first week of the year.

Namespace: DevExpress.Xpf.Editors.DateNavigator

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

#Declaration

public CalendarWeekRule? WeekNumberRule { get; set; }

#Property Value

Type Description
Nullable<CalendarWeekRule>

A CalendarWeekRule enumeration value.

#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