Table of Contents
WeekNumberBase Property

Specifies whether the Calendar/DatePicker should display week number based on month or year.

Syntax
 public CalendarWeekNumberBase WeekNumberBase { get; set; }
Remarks

Set this property to any value other than None to display a week number in front of every week.

The week number can be based on month or year. When the week number is based on month, the Calendar/DatePicker displays "1" for the first week of the month, "2" for the second week of the month and so on. When the week number is based on year, the Calendar/DatePicker displays "1" for the first week of the year, "2" for the second week of the year and so on.

Week numbers are displayed at the same place as week selectors, thus week selector will not be displayed when this property is set to True. However you can use WeekSelectorStyle to customize the style of week numbers.

If you wish to display a custom title (title text, for example), for the week numbers, you can do so by setting MonthSelectorVisible to False, but set MonthSelectorStyle to include a background image. This way the image will be displayed in the month selector cell and you can modify the image to provide custom title.

See Also