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
parent
commit
40fbad3ec6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/DateTimePickers/DatePickerPresenter.cs

2
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)

Loading…
Cancel
Save