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

Button CornerRadius is not working with BackgroundColor #18090

Closed
Sunday5214 opened this issue Oct 18, 2023 · 3 comments · Fixed by #18959
Closed

Button CornerRadius is not working with BackgroundColor #18090

Sunday5214 opened this issue Oct 18, 2023 · 3 comments · Fixed by #18959
Labels
area-controls-button Button, ImageButton fixed-in-8.0.7 fixed-in-9.0.100-preview.1.9973 platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Sunday5214
Copy link

Description

image

image

I set CornerRadius and set BackgroundColor. CornerRadius was not working
Set BackgroundColor, CornerRadius Setting is not working.

Steps to Reproduce

  1. Just set CornerRadius and set BackgroundColor in XAML

Link to public reproduction project repository

No response

Version with bug

Unknown/Other

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13, Android 11

Did you find any workaround?

No response

Relevant log output

No response

@Sunday5214 Sunday5214 added the t/bug Something isn't working label Oct 18, 2023
@jsuarezruiz jsuarezruiz added the area-controls-button Button, ImageButton label Oct 18, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Oct 18, 2023
@AnnYang01
Copy link

Verified this on Visual Studio Enterprise 17.8.0 Preview 4.0 using below Project (.NET 8.0), This issue repro on Android 13.0-API34, not repro on Windows 11 and iOS 16.4.
MauiApp20.zip
Android 13.0-API34
image
Windows 11
image
iOS 16.4
image

@AnnYang01 AnnYang01 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Oct 18, 2023
@PureWeen PureWeen added this to the Backlog milestone Oct 18, 2023
@ghost
Copy link

ghost commented Oct 18, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@WdeBruin
Copy link
Contributor

Related / duplicate of #18807

In the handler path it checks if the platformView.Background is of type BorderDrawable, in that case there is a BorderRadius > 0 check before applying the given borderradius. So 0 doesn't work.

If you were to set Cornerradius to 1, you would get a very slight radius but it works. That is a workaround that could be good enough.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-button Button, ImageButton fixed-in-8.0.7 fixed-in-9.0.100-preview.1.9973 platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants