-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/0Work that we can't release withoutWork that we can't release withoutpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-9.0.40s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
When I add a shadow to a button on an Android device, several things happen:
- The shadow does not apply well to a button with rounded borders. [Tracked here: [Android] Button with corner radius shadow broken on Android device #20596]
- The color of the
Brush
property of theShadow
does not recognize the transparency value in#AARRGGBB
format. According to its documentation it is a valid format. iOS and Windows recognise this format. - The shadow has a solid color.
I attach an image with the errors:
This happens only on Android, on Windows and iOS, it works fine.
Steps to Reproduce
- Create a new MAUI project.
- Add a button with rounded borders, shadow, and a brush color with transparency.
<Button
CornerRadius="8"
Text="Button without transparency [#000000]">
<Button.Shadow>
<Shadow Brush="#000000"
Offset="0,4"
Radius="4" />
</Button.Shadow>
</Button>
<Button
CornerRadius="8"
Text="Button with 35% of transparency [#59000000]">
<Button.Shadow>
<Shadow Brush="#59000000"
Offset="0,4"
Radius="4" />
</Button.Shadow>
</Button>
- Launch the application and see the error.
Link to public reproduction project repository
Version with bug
9.0.60 SR6
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.30 SR3
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
MiguelSaez-Secandca, YZahringer, JavierFajardoSecanda and juaal12
Metadata
Metadata
Assignees
Labels
area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingi/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionp/0Work that we can't release withoutWork that we can't release withoutpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androidregressed-in-9.0.40s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done