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
Picker Title displays above the control on Windows #6845
Comments
Verified this issue with Visual Studio Enterprise 17.3.0 Preview 1.0 [32427.455.main]. Repro on Windows. Sample Project: MauiApp5.zip |
this inconsistency was already present in xamarin.forms - see xamarin/Xamarin.Forms#3646 In xamarin forms you can work around this by creating a custom PickerRenderer for the windows project that does something like this:
I've not tried to achieve the same effect in maui yet, but I assume it'll be doable. |
Setting For completeness, I'm pasting the snippet here again:
|
@mkomel Thanks for the snippet, it works great.
|
I see this point of the inconsistency and we probably should add a platform-specific for this? @PureWeen |
@mattleibow yea, I'm not sure why it'd be useful for us to put that their ourselves. If users want the title their they should just add it themselves :-/ Ideally we could make this default and then the platform specific would be used to restore old behavior, or we possibly switch to a new handler and then users can restore the old handler if they want to. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
I am using Visual Studio Community v17.3.6 and am having this issue as well. Only on Windows, the picker Title and/or placeholder displays above the picker. Would appreciate this coming out of the ol' backlog. |
Verified this on Visual Studio Enterprise 17.6.0 Preview 5.0. Repro on Windows 11 with below Project: Different behavior for Windows and Android. |
Moving this to an enhancement as this is how the OS presents it. However, since this is popular, we can discuss what the options are:
|
Still an issue on Android, picker Title is not rendered. @jfversluis any update on this? |
@fekberg this issue talks about Windows specifically, could you please find an issue relevant to Android or report one? Looking at the current state on the main branch (.NET 8) I don't see anything wrong at a first glance on Android. |
Description
When running on Windows, the
Picker
displays theTitle
property above the control. According to the documentation, and the behaviour on Android, I expect it to be treated as a placeholder when no item is selected.Documentation snippet:
Windows:
Android:
Steps to Reproduce
Picker
toMainPage.xaml
as below (direct copy from Microsoft's sample code)Windows Machine
Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10 (21H2 | 19044.1645)
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: