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

GradialRadientBrush not working as expected on Android #14581

Open
czmirek opened this issue Apr 14, 2023 · 2 comments
Open

GradialRadientBrush not working as expected on Android #14581

czmirek opened this issue Apr 14, 2023 · 2 comments
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

@czmirek
Copy link

czmirek commented Apr 14, 2023

Description

According to documentation the RadialGradientBrush should produce the following.

image

But on Android it looks like this.

image

The gradient background is always a circle but I need an ellipse, is that possible?

Steps to Reproduce

  • Create new project
  • add following code to page
<Frame BorderColor="LightGray" HasShadow="True" CornerRadius="12" HeightRequest="120" WidthRequest="120">
    <Frame.Background>
        <RadialGradientBrush>
            <GradientStop Color="Red" Offset="0.1" />
            <GradientStop Color="DarkBlue" Offset="1.0" />
        </RadialGradientBrush>
    </Frame.Background>
</Frame>

Link to public reproduction project repository

new project

Version with bug

7.0 (current)

Last version that worked well

7.0 (current)

Affected platforms

Android

Affected platform versions

Android 12, API 31, x86_64

Did you find any workaround?

No

Relevant log output

No response

@czmirek czmirek added the t/bug Something isn't working label Apr 14, 2023
@jsuarezruiz jsuarezruiz added the area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing label Apr 14, 2023
@jsuarezruiz jsuarezruiz self-assigned this Apr 14, 2023
@jsuarezruiz jsuarezruiz removed their assignment Apr 14, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Apr 17, 2023
@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jun 28, 2023
@XamlTest
Copy link

Verified this on Visual Studio Enterprise 17.7.0 Preview 2.0. Repro on Windows 11, Android 13.0-API33 and iOS 16.4 with below Project:
14581.zip

image

@Saleca
Copy link

Saleca commented Dec 19, 2024

same here, any workaround for sharper gradients in android? seems that gradient stop offset doesnt change color position.

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

No branches or pull requests

4 participants