Browse Source
Changing the order during initialization the _daySelector
Can fix the issue #11558
pull/11559/head
dif-sam
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Controls/DateTimePickers/DatePickerPresenter.cs
|
|
|
@ -367,11 +367,11 @@ namespace Avalonia.Controls |
|
|
|
var dt = Date; |
|
|
|
if (DayVisible) |
|
|
|
{ |
|
|
|
_daySelector.FormatDate = dt.Date; |
|
|
|
var maxDays = _calendar.GetDaysInMonth(dt.Year, dt.Month); |
|
|
|
_daySelector.MaximumValue = maxDays; |
|
|
|
_daySelector.MinimumValue = 1; |
|
|
|
_daySelector.SelectedValue = dt.Day; |
|
|
|
_daySelector.FormatDate = dt.Date; |
|
|
|
} |
|
|
|
|
|
|
|
if (MonthVisible) |
|
|
|
|