Browse Source

Merge branch 'master' into fixes/fix-missed-resources

danwalmsley 5 years ago
parent
commit
475cbd6e2d
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/Avalonia.Controls/DateTimePickers/DatePickerPresenter.cs

+ 8 - 1
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();