Android : Border Stroke GradiantBrush can only switch to another gradiantbrush #22042
Labels
area-drawing
Shapes, Borders, Shadows, Graphics, BoxView, custom drawing
fixed-in-8.0.90
fixed-in-9.0.0-rc.1.24453.9
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Hi,
I just saw that when i set the Stroke of a Border with a gradiant resources, i can't change it back to a classic color or even a solidcolorbrush. For exemple switch from a gradiant to a gray color don't work and the gradiant stay.
So i tried by setting a fake gradiant with 2 stops of the same color (gray) and it worked.
Tried on Android only but the problem could exist on other platforms, dunno
Steps to Reproduce
Add GradiantBrush to Colors.xaml
Add a border to your xaml with a tapgesture.
Switch from a color to another.
Hope you'll find a way to fix that !
Also... if you have plan to add gradiant on textcolor, it could be nice :p
This is my first time reporting a bug, hope i've done it right :)
Link to public reproduction project repository
https://github.com/Skarzag/MauiAppGradiantBorder
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: