Skip to content

Conversation

@jsuarezruiz
Copy link
Contributor

Description of Change

Changes in DatePicker, TimePicker and Picker:

API Description
IsOpen Gets or sets whether the picker dialog is open.
  • IsOpen = true opens the picker.
  • IsOpen = false closes the picker.
  • Supports two-way binding for view model integration.

Events

API Description
Opened Raised when the picker dialog is opened.
Closed Raised when the picker dialog is closed.

Issues Fixed

Fixes #8945

@jsuarezruiz jsuarezruiz added t/enhancement ☀️ New feature or request area-controls-datetimepicker DatePicker, TimePicker area-controls-picker Picker labels May 5, 2025
/// <summary>
/// Provides event data for the event that is raised when a picker control is closed.
/// </summary>
public class PickerClosedEventArgs : EventArgs
Copy link
Member

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

Copy link
Contributor Author

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.

@github-project-automation github-project-automation bot moved this from Approved to Changes Requested in MAUI SDK Ongoing Jul 16, 2025
@PureWeen PureWeen closed this Jul 16, 2025
@github-project-automation github-project-automation bot moved this from Changes Requested to Done in MAUI SDK Ongoing Jul 16, 2025
@PureWeen PureWeen reopened this Jul 16, 2025
@github-project-automation github-project-automation bot moved this from Done to In Progress in MAUI SDK Ongoing Jul 16, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Changes Requested in MAUI SDK Ongoing Jul 18, 2025
@rmarinho
Copy link
Member

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
Copy link
Member

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

Copy link
Contributor Author

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.

@github-project-automation github-project-automation bot moved this from Changes Requested to Approved in MAUI SDK Ongoing Jul 24, 2025
@rmarinho rmarinho merged commit 8a2f830 into net10.0 Jul 24, 2025
129 checks passed
@rmarinho rmarinho deleted the fix-8945 branch July 24, 2025 14:45
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing Jul 24, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-datetimepicker DatePicker, TimePicker area-controls-picker Picker p/0 Current heighest priority issues that we are targeting for a release. t/enhancement ☀️ New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants