dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.82k stars 1.66k forks source link

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 2 weeks ago

MauiUIui commented 2 weeks ago

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

github-actions[bot] commented 2 weeks ago

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.