unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.89k stars 720 forks source link

Implement the `CalendarViewDayItemChanging` event #6428

Open darenm opened 3 years ago

darenm commented 3 years ago

What would you like to be added:

I have a scenario where I want to black list dates in the CalendarDatePicker control and I see that the CalendarViewDayItemChanging isn't hooked up as yet.

todo noting missing feature

Why is this needed:

In my application, the user should only be able to choose from a range of specific dates. Although the selected date could be rejected in after the DateChanged event, it would be more elegant for the user to be prevented from selecting invalid dates using the black list capability.

For which Platform:

Anything else we need to know?

darenm commented 3 years ago

For very simple scenarios where a single, contiguous, date range is required, the MinDate and MaxDate properties work - but I prefer the visual of blacked out dates.

Perksey commented 9 months ago

Just encountered this today when migrating from MAUI to Uno.