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

Closed
Skarzag opened this issue Apr 24, 2024 · 1 comment · Fixed by #22168
Closed

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

Skarzag opened this issue Apr 24, 2024 · 1 comment · Fixed by #22168
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

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

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
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
kubaflo added a commit to kubaflo/maui that referenced this issue Jul 20, 2024
kubaflo added a commit to kubaflo/maui that referenced this issue Aug 4, 2024
PureWeen pushed a commit that referenced this issue Aug 7, 2024
…- fix (#22168)

* Fixed the issue #22042 & added a UITest

* Added snapshot

* Added a test category

* Updated a Ui test

* Update Issue22042.cs

* Added snapshots

* Fixed WIndows test

* Windows snapshot

---------

Co-authored-by: Javier Suárez <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants