Browse Source
Merge branch 'master' into fixes/fix-missed-resources
pull/4411/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
1 deletions
-
src/Avalonia.Controls/DateTimePickers/DatePickerPresenter.cs
|
|
|
@ -356,10 +356,17 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
|
|
|
|
if (MonthVisible) |
|
|
|
{ |
|
|
|
_monthSelector.SelectedValue = dt.Month; |
|
|
|
|
|
|
|
_monthSelector.FormatDate = dt.Date; |
|
|
|
} |
|
|
|
|
|
|
|
if (YearVisible) |
|
|
|
{ |
|
|
|
_yearSelector.SelectedValue = dt.Year; |
|
|
|
_yearSelector.FormatDate = dt.Date; |
|
|
|
} |
|
|
|
|
|
|
|
_suppressUpdateSelection = false; |
|
|
|
|
|
|
|
SetInitialFocus(); |
|
|
|
|