Repository navigation
Show week numbers in the date pickers - #201
Merged
Merged
Conversation
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
force-pushed
the
show-week-numbers
branch
from
November 26, 2026 09:45
b02112f to
a13a819
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avalonia 12.2 adds
IsWeekNumberVisibletoCalendarandCalendarDatePicker. It is now on in the app-wideCalendarDatePickerstyle, so the pickers in the main window, the submit worklog dialog and the entry editor all show week numbers, drawn inTextMutedso they don't compete with the days.WeekNumberRuleandFirstDayOfWeekkeep 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.