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

DateNavigator.ShowWeekNumbers Property

Gets or sets a value indicating whether week numbers will be shown in the Date Navigator. This is a dependency property.

Namespace: DevExpress.Xpf.Editors.DateNavigator

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public bool ShowWeekNumbers { get; set; }

Property Value

Type Description
Boolean

true to show week numbers; otherwise, false.

Remarks

Use the ShowWeekNumbers property to specify whether numbers should be shown to the left of the DateNavigator control for every week.

DateNavigator_ShowWeekNumbers

Example

This example demonstrates how to customize the Date Navigator. 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"/>

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowWeekNumbers 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