Maui
Maui copied to clipboard
[BUG] Popup doesn't work on Android when there is a surrounding Frame element. It works well on Windows.
Is there an existing issue for this?
- [X] I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
A Popup with a surrounding Frame element does not work on Android. It works well on Windows. On Android the correct size of the Popup and the correct background color is visible but none of the controls. The Popup is completly empty.
Expected Behavior
On Windows it works as I expect it to. You can even use padding and nice rounded corners.
Steps To Reproduce
- Open und run the attached GitHup project.
- Use an Adroid device and run PopupWithFrame
- Click on the button of MainPage to see the empty Popup.
Link to public reproduction project repository
https:://github.com/GerhardMauerberger/PopupWithFrame.git
Environment
- .NET MAUI CommunityToolkit:7.0.0
- OS: Android 10.0 - API 29
- .NET MAUI: 8.0
Anything else?
No response
I tested it and the text from label does not show up. I went and created my project using DI and standard pattern with same behavior and issue.
Edit: I went and created a second project to just test a label nested inside a frame to see what would happen. Using the above example it did not have any issues on android if rendered outside a popup.
I have tested the sample app provided on this issue, and it is fixed using the latest version of .NET MAUI Community Toolkit 9.0.2 and .NET MAUI 8.0.70. I'm closing this issue.