Skip to content

Show week numbers in the date pickers - #201

Merged
vesnicancz merged 1 commit into
masterfrom
show-week-numbers
Nov 26, 2026
Merged

vesnicancz merged 1 commit into
masterfrom
show-week-numbers

Conversation

@vesnicancz

Copy link
Copy Markdown
Owner

Avalonia 12.2 adds IsWeekNumberVisible to Calendar and CalendarDatePicker. It is now on in the app-wide CalendarDatePicker style, so the pickers in the main window, the submit worklog dialog and the entry editor all show week numbers, drawn in TextMuted so they don't compete with the days.

WeekNumberRule and FirstDayOfWeek keep their defaults, which come from the current culture: Czech gets ISO 8601 weeks (Monday, first four-day week), English the en-US rule. Fluent leaves the column header blank, so there is nothing to translate.

A headless smoke test opens a picker and checks that its calendar shows ISO weeks 1, 2, 3 for January 2026; it fails without the style setter.

Not checked visually: the popup gets wider by the week column (Fluent sets a 332 px minimum), worth a look in each theme.

Avalonia 12.2 can number the weeks in the calendar. Turn it on in the
app-wide CalendarDatePicker style, so the main window, the submit dialog and
the entry editor all get it, and draw the numbers muted next to the days.
The week rule and first day come from the current culture, which gives
ISO 8601 weeks in Czech.
@vesnicancz
vesnicancz merged commit cdcc666 into master Nov 26, 2026
5 checks passed
@vesnicancz
vesnicancz deleted the show-week-numbers branch November 26, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant