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

[Android] ImageButton CornerRadius has nothing to do with Xamarin.Forms CornerRadius #24939

Closed
RubenBonillaLluch opened this issue Sep 26, 2024 · 3 comments
Labels
area-controls-button Button, ImageButton migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert t/bug Something isn't working

Comments

@RubenBonillaLluch
Copy link

Description

I'm migrating my app from Xamarin.Forms to MAUI and I found out that the CornerRadius property is very differnt from the one in Xamarin.Forms.

I have this control:
<ImageButton WidthRequest="150" HeightRequest="150" CornerRadius="75" Source="{Binding UserPhoto}" Aspect="AspectFill" HorizontalOptions="Center" Style="{StaticResource ImageButton}" />
Screenshot_20240926_104651

The exact same code in Maui looks like this:
Screenshot_20240926_111650_AppMasatsAndroid

Migrating my app I'm finding a lot of things like this, I don't want to be mean, but almost everything in Maui feels like a donwgrade from its predecessor.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

Using clip or creating a custom control does the job.

Relevant log output

No response

@RubenBonillaLluch RubenBonillaLluch added the t/bug Something isn't working label Sep 26, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@RubenBonillaLluch RubenBonillaLluch changed the title ImageButton CornerRadius has nothing to do with Xamarin.Forms CornerRadius [Android] ImageButton CornerRadius has nothing to do with Xamarin.Forms CornerRadius Sep 26, 2024
@jfversluis jfversluis added area-controls-button Button, ImageButton migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels Sep 26, 2024
@jfversluis
Copy link
Member

Duplicate of #23854

@jfversluis jfversluis marked this as a duplicate of #23854 Sep 26, 2024
@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
@jfversluis
Copy link
Member

In the linked issue a workaround is mentioned for the time being with using a Border

@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-button Button, ImageButton migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants