-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[.NET 10] Add "Open/Close" API to picker controls #29323
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
Conversation
| /// <summary> | ||
| /// Provides event data for the event that is raised when a picker control is closed. | ||
| /// </summary> | ||
| public class PickerClosedEventArgs : EventArgs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's break these out to all the separate types
- TimePickerClosed, DatePickerClosed, PickerClosed (same with open eventargs)
Look at creating a static "Empty" we can use internally as well to reduce allocations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, added all the new EventArgs.
|
Needs rebase @jsuarezruiz |
| static Microsoft.Maui.Handlers.OpenWindowRequest.operator ==(Microsoft.Maui.Handlers.OpenWindowRequest? left, Microsoft.Maui.Handlers.OpenWindowRequest? right) -> bool | ||
| static Microsoft.Maui.Handlers.PickerHandler.MapIsOpen(Microsoft.Maui.Handlers.IPickerHandler! handler, Microsoft.Maui.IPicker! picker) -> void | ||
| static Microsoft.Maui.Handlers.SearchBarHandler.MapReturnType(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar) -> void | ||
| static Microsoft.Maui.Handlers.TimePickerHandler.MapIsOpen(Microsoft.Maui.Handlers.ITimePickerHandler! handler, Microsoft.Maui.ITimePicker! timePicker) -> void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just leave these all as internal for now?
going forward we're just going to leave these and extentions methods internal because they don't really add anything to make them public
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That static mapping method will end up being the only one not public in the Pickers, but, agree, let’s keep these and the related extension methods internal. Applied changes.
Description of Change
Changes in DatePicker, TimePicker and Picker:
IsOpen = trueopens the picker.IsOpen = falsecloses the picker.Events
Issues Fixed
Fixes #8945