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

Add "Open/Close" API to picker controls #8945

Open
PureWeen opened this issue Jul 22, 2022 · 4 comments
Open

Add "Open/Close" API to picker controls #8945

PureWeen opened this issue Jul 22, 2022 · 4 comments

Comments

@PureWeen
Copy link
Member

Description

Currently the only way to open/close picker controls is to call focus/unfocus. This is non intuitive and requires you to have to wire up odd behavior at the platform level in order to make this work.

(Public) API Changes

IPicker

Properties

API Description
open opens the pickers dialog.
close closes the pickers dialog.

Usage Scenarios

<DatePicker Visible="false" x:name="picker" />
picker.Open

Backward Compatibility

N/A

Difficulty

Low

@maxiking01
Copy link

These function will be useful for Nullable DatePicker where a datepicker is hidden and should be opened when user clicks the control. So far the Nullable DatePicker was implemented using Focus, UnFocus function.

@mos379
Copy link

mos379 commented Apr 30, 2024

Adding my support here! Really need some possibility to show a hidden picker on windows and ios

@SmartSquareAZ
Copy link

Is there progress on this topic? This function would be very nice!

@FreakyAli
Copy link

+1

Willing to work on this myself if I have to,

@PureWeen can you confirm what's needed here?

@Eilon Eilon added area-controls-picker Picker and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants