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

Assigning a Brush of type RadialGradientBrush to the Background property of an ImageButton causes the BG to show a solid color #23119

Open
MauiUIui opened this issue Jun 18, 2024 · 1 comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Milestone

Comments

@MauiUIui
Copy link

Description

When set to a value of type RadialGradientBrush the Background is shown as a solid color background with the color of the last GradientStop (Offset="1").
Changing the Background property's value to something else during debugging and then changing it back again causes it to show correctly (NOT a workaround).
Might have been caused by this fix: #22717
LinearGradientBrushs work just fine.

Steps to Reproduce

Create a MAUI app and a LinearGradientBrush as a resources
Place an ImageButton in the UI and pass the created LinearGradientBrush as a Background
Observe the bug.

Link to public reproduction project repository

No response

Version with bug

8.0.60 SR6

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.0-rc.1.9171

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@MauiUIui MauiUIui added the t/bug Something isn't working label Jun 18, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen PureWeen added area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing potential-regression This issue described a possible regression on a currently supported version., verification pending platform/android 🤖 labels Jun 18, 2024
@PureWeen PureWeen added this to the Backlog milestone Jun 18, 2024
@MauiUIui MauiUIui changed the title A Brush of type RadialGradientBrush to the Background property of an ImageButton doesn't show correctly Assigning a Brush of type RadialGradientBrush to the Background property of an ImageButton causes the BG to show a solid color Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants