Fixed Picker Items are not Displaying on macOS platform#27535
Merged
PureWeen merged 13 commits intodotnet:inflight/currentfrom Aug 7, 2025
Merged
Fixed Picker Items are not Displaying on macOS platform#27535PureWeen merged 13 commits intodotnet:inflight/currentfrom
PureWeen merged 13 commits intodotnet:inflight/currentfrom
Conversation
Contributor
|
Hey there @NanthiniMahalingam! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
/rebase |
0cac32a to
c4c4b02
Compare
StephaneDelcroix
previously requested changes
Feb 13, 2025
| pickerView?.ReloadAllComponents(); | ||
|
|
||
| var pickerController = UIAlertController.Create(VirtualView.Title, "", UIAlertControllerStyle.ActionSheet); | ||
| var pickerController = UIAlertController.Create("", "", UIAlertControllerStyle.ActionSheet); |
Contributor
There was a problem hiding this comment.
this doesn't look like a proper fix, but a hack to get it working
Contributor
Author
There was a problem hiding this comment.
Hi @StephaneDelcroix ,
- On the macOS native platform, when setting the title in a UIAlertController, only the title is displayed, rather than any subview added to the UIAlertController.
- However, when setting an empty string as the title in UIAlertController, the added subview is displayed as expected.
- Similarly, in the .NET MAUI macOS platform, a UIAlertController displays a UIPickerView added as a subview. When setting the title as an empty string, the UIPickerView subview behaves like its native macOS.
Contributor
|
title and logo are gone in the 'after'. is this what we want ? |
Contributor
Author
Hi @StephaneDelcroix Yes, we want the picker items to be displayed without the title and logo. |
Contributor
|
/rebase |
c4c4b02 to
ea4d6cb
Compare
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Added the output image on windows platform
ea4d6cb to
0d996ad
Compare
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
suggested changes
Mar 21, 2025
|
|
||
| [Test] | ||
| [Category(UITestCategories.Picker)] | ||
| public void ShouldDisplayPickerItemsWhenOpeningPicker() |
Contributor
Contributor
Author
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
suggested changes
Apr 16, 2025
Contributor
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
jsuarezruiz
suggested changes
May 12, 2025
jsuarezruiz
approved these changes
May 16, 2025
PureWeen
pushed a commit
that referenced
this pull request
Aug 8, 2025
* Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Create ShouldDisplayPickerItemsWhenOpeningPicker.png Added the output image on windows platform * Ignore the test case on catalyst platform * Added the test case for mac platform * Added the macOS output image * Added the comment line for fix.
github-actions bot
pushed a commit
that referenced
this pull request
Aug 11, 2025
* Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Create ShouldDisplayPickerItemsWhenOpeningPicker.png Added the output image on windows platform * Ignore the test case on catalyst platform * Added the test case for mac platform * Added the macOS output image * Added the comment line for fix.
github-actions bot
pushed a commit
that referenced
this pull request
Aug 15, 2025
* Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Create ShouldDisplayPickerItemsWhenOpeningPicker.png Added the output image on windows platform * Ignore the test case on catalyst platform * Added the test case for mac platform * Added the macOS output image * Added the comment line for fix.
github-actions bot
pushed a commit
that referenced
this pull request
Aug 15, 2025
* Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Create ShouldDisplayPickerItemsWhenOpeningPicker.png Added the output image on windows platform * Ignore the test case on catalyst platform * Added the test case for mac platform * Added the macOS output image * Added the comment line for fix.
github-actions bot
pushed a commit
that referenced
this pull request
Aug 19, 2025
* Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Create ShouldDisplayPickerItemsWhenOpeningPicker.png Added the output image on windows platform * Ignore the test case on catalyst platform * Added the test case for mac platform * Added the macOS output image * Added the comment line for fix.
github-actions bot
pushed a commit
that referenced
this pull request
Aug 22, 2025
* Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Fixed the picker view items source does not display on mac platform * Added the test case * Added the output images. * Create ShouldDisplayPickerItemsWhenOpeningPicker.png Added the output image on windows platform * Ignore the test case on catalyst platform * Added the test case for mac platform * Added the macOS output image * Added the comment line for fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Issue Details
Root Cause
Description of Change
Issues Fixed
Fixes #27474,
Fixes #15954,
Fixes #18015
Validated the behaviour in the following platforms
Output
macOS platform
mac_Before_27474.mov
mac_After_27474.mov