Closed takla21 closed 3 years ago
@carldebilly isn't this expected ?
Yep. That's the expected result as it's exactly the behavior on Windows.
To have min/max dates, you'll need to use CalendarDatePicker/CalendarView: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.calendardatepicker
Represents a control that allows a user to pick a date from a calendar display. Equivalent WinUI class: Microsoft.UI.Xaml.Controls.CalendarDatePicker.
@takla21 is this a regression from your end, or something you'd expect to work ?
@jeromelaban it's actually a regression for iOS. It used to work (blocking days and month) with the previous uno version we were using (3.1.29)
@carldebilly The thing is that it's does block days and month on android. I've updated the sample on android to the same version as android here DatePickerMaxDateSample.zip. So does it means that it's a bug on android?
Yep it's a bug :-).
It should be possible to set a feature flag to bring back the old behavior.
To be honest, the "native DatePicker" is a lot closer to CalendarDatePicker
than DatePicker
itself. I think they should come back as native pickers for CalendarDatePicker
instead...
Duplicate of https://github.com/unoplatform/uno/issues/5575
Well, it seems that it's not quite implemented yet https://github.com/unoplatform/uno/issues/3750
Closing as duplicate
Current behavior
Only the year in
DatePicker.MaxYear
is used when limiting the max date onUIDatePicker
.Expected behavior
In previous version, the
UIDatePicker
used to block month and day as well.How to reproduce it (as minimally and precisely as possible)
MaxYear = DateTimeOffset.Now
Workaround
N/A
Environment
Nuget Package:
Nuget Package Version(s): 3.8.0-dev.169
Affected platform(s):
IDE:
Relevant plugins:
Anything else we need to know?