Back to Devexpress

DateNavigator.ShowWeekNumbers Property

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigator-3a7e90cb.md

latest3.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool ShowWeekNumbers { get; set; }
vb
Public Property ShowWeekNumbers As Boolean

Property Value

TypeDescription
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.

Example

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

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

wpf-scheduler-filter-time-regions/CS/DXSample/MainWindow.xaml#L30

xml
ShowTodayButton="False"
               ShowWeekNumbers="False">
<dxe:DateNavigator.StyleSettings>

See Also

WeekNumberRule

DateNavigator Class

DateNavigator Members

DevExpress.Xpf.Editors.DateNavigator Namespace