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

Contents not rendered on android #105

Open
DeliriumCode opened this issue Jan 19, 2024 · 4 comments
Open

Contents not rendered on android #105

DeliriumCode opened this issue Jan 19, 2024 · 4 comments

Comments

@DeliriumCode
Copy link

DeliriumCode commented Jan 19, 2024

For some reason, if you add a element with a border to a popup, the popup wont render the controls on android/ios. It renders fine on windows.

I will try and do a bit of digging tomorrow…

ie

<Label Text=“blah”/>
<Border><Entry/><Border>
@DeliriumCode
Copy link
Author

I believe this is an issue in .net maui itself.
It will impact anyone who uses border based controls (i.e. some material style controls, or frameworks like uraniumui)
The solution is to not use frames and use a border instead for the outer container. I will verify later today.
dotnet/maui#18526

@DeliriumCode DeliriumCode changed the title Contents not rendered on android/ios Contents not rendered on android Jan 20, 2024
@DeliriumCode
Copy link
Author

So in the old xamarin version of mopups, if you were creating a custom popup you used a frame, which then contained your controls. however there is a bug in the frame control where if you use a border based control, all the controls disappear. The fix is to change the frame to a border, ie
<Border StrokeShape="RoundRectangle 5,5,5,5">

<PopupPage>
<StackLayout>
<**Frame**>
<StackLayout>
<Border>
<Entry/>
</Border>
</StackLayout>
</Frame>
</StackaLayout>
</PopupPage>

Hopefully this will help any other users with this issue, its an issue in maui, not mopups...

@omernaser
Copy link

even after MAUI Fix it still has an issue in some cases the Android content not appear i don't have a clear scenario but it happening

@softlion
Copy link

@DeliriumCode Frame is deprecated and should not be used. It is removed in net9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants