dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.71k forks source link

Request a feature to open a Picker selection window ( as if we are clicking on the picker with a mouse ) #15001

Open m4g1c14n2000 opened 1 year ago

m4g1c14n2000 commented 1 year ago

Description

I would like to be able to simulate mouse click on a Picker, calling Focus() on it do not open the Picker selection window, I have to call the .Focus() and then press the Spacebar / Enter.

Public API Changes

picker.DroppedDown = true;

( UWP has this feature https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.combobox.droppeddown?redirectedfrom=MSDN&view=windowsdesktop-7.0#System_Windows_Forms_ComboBox_DroppedDown )

Intended Use-Case

Imagine a POS App. ( Point of Sales )

A user can type in a keyword on an Entry, they can then press enter to perform a search, imagine that there are 5 items returned, I wish to show the picker selection window , where user can easily use a arrow up / down to Highlight a selection, and then press enter / spacebar to perform the selection.

When selection has been performed, I will then add the Item into the cashier.

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

mos379 commented 4 months ago

Would it not make sense to simply behave the same way as before where simply calling Focus() would trigger the selection to popup? Especially if the actual picker is normally hidden from UI.