Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullable DatePicker (make Date, MinimumDate & MaximumDate nullable) #27921

Draft
wants to merge 7 commits into
base: net10.0
Choose a base branch
from

Conversation

jfversluis
Copy link
Member

@jfversluis jfversluis commented Feb 20, 2025

Description of Change

The long awaited feature of making the Date, MinimumDate, and MaximumDate properties of the DatePicker class nullable has been implemented!

Changes

  • DateTime DatePicker.Date -> DateTime? DatePicker.Date
  • DateTime DatePicker.MaximumDate -> DateTime? DatePicker.MaximumDate
  • DateTime DatePicker.MinimumDate -> DateTime? DatePicker.MinimumDate
  • Minor code styling and API docs changes

In #1100 it is proposed to also make the type DateOnly, while I like that, unfortunately that type is not available in netstandard so that would cause a lot of duplication of code and not great APIs and might even just be impossible because of that to make the XAML parsing and design time tooling work.

Instead, I think we should take #21989 in addition to this to still allow people to use DateOnly (and TimeOnly).

Issues Fixed

Contributes to #1100 (TimePicker PR in #27930)

Copy link
Contributor

🚨 API change(s) detected @davidbritch FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant