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 : Border Stroke GradiantBrush can only switch to another gradiantbrush #22042

Open
Skarzag opened this issue Apr 24, 2024 · 1 comment · May be fixed by #22168
Open

Android : Border Stroke GradiantBrush can only switch to another gradiantbrush #22042

Skarzag opened this issue Apr 24, 2024 · 1 comment · May be fixed by #22168
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing 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

@Skarzag
Copy link

Skarzag commented Apr 24, 2024

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

@Skarzag Skarzag added the t/bug Something isn't working label Apr 24, 2024
@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Apr 25, 2024
@RoiChen001
Copy link
Collaborator

Can repro this issue at android platform on the latest 17.10 preview 5(8.0.7&8.0.21).

@jsuarezruiz jsuarezruiz added platform/android 🤖 area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing labels Apr 25, 2024
kubaflo added a commit to kubaflo/maui that referenced this issue May 2, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone May 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 🤖 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.

3 participants