Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] Brushes API - z draw order on Android is incorrect in certain cases #11714

@Tommigun1980

Description

@Tommigun1980

I draw a frame with a shadow color, then a box with a gradient brush, and then a font image on top.

This is how it should look:
Screenshot 2020-08-09 at 12 16 41

The following problem happens on Android, on iOS the draw order is correct (The fill direction changes because I was playing around with it, that is not a bug):

  1. If the frame has a shadow and a transparent background, it gets drawn on top of the box view (or any element) that has a brush background, even though the brush has a higher z value:

Screenshot 2020-08-09 at 11 07 18

  1. Turning off the frame's shadow restores proper draw order:

Screenshot 2020-08-09 at 11 07 43

  1. I managed to hack it to work by setting the frame's background's alpha to 1, and keep the shadow on:

Screenshot 2020-08-09 at 11 13 39

                    <Grid
                        <Frame Style="{StaticResource MyShadowFrameStyle}" />
                        <BoxView Style="{StaticResource MyGradientBoxStyle}" />
                        <Button
                            Style="{StaticResource MyTransparentFontIconButtonStyle}"
                            Text="{x:Static local:MyFontIcons.Plus}" />
                    </Grid>

Metadata

Metadata

Assignees

Labels

a/brushesp/Androids/needs-info ❓A question has been asked that requires an answer before work can continue on this issue.s/needs-repro ❔This reported issue doesn't include a sample project reproducing the issue. Please provide one.s/unverifiedNew report that has yet to be verifiedt/bug 🐛

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions