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

Shadow Radius is rendered differently on platforms #10630

Closed
F-Goncalves opened this issue Oct 12, 2022 · 1 comment
Closed

Shadow Radius is rendered differently on platforms #10630

F-Goncalves opened this issue Oct 12, 2022 · 1 comment
Labels

Comments

@F-Goncalves
Copy link

Description

Hi,

I am using a Border with with Shadow as below:

<Border x:Name="Border"
        BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}"
        StrokeShape="RoundRectangle 8,8,8,8"
        StrokeThickness="1"
        Stroke="{AppThemeBinding Light={StaticResource Gray100Brush}, Dark={StaticResource Gray500Brush}}"
        Margin="10"
        HeightRequest="150"
        WidthRequest="150"
        HorizontalOptions="Center"
        VerticalOptions="Center">
    <Border.Shadow>
        <Shadow Brush="{AppThemeBinding Light={StaticResource Gray500}, Dark={StaticResource Gray600}}"
            Opacity="0.5"
            Radius="20"/> 
    </Border.Shadow>
    ...
</Border>

The shadow rendered on iOS, MacCatalyst and Android looks very different from one another.
Android:
Screenshot_1665563842
MacOs:
Bildschirmfoto 2022-10-12 um 10 39 42
iOS:
Simulator Screen Shot - iPhone 13 Pro Max - 2022-10-12 at 10 40 18

I would expect the Shadow to result in the same visual on each platform.

Steps to Reproduce

Clone attached repository and run on different platforms.

Link to public reproduction project repository

https://github.com/F-Goncalves/.NET-MAUI-Workshop

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, macOS

Affected platform versions

iOS 15.5, Android 12, MacOS 12.5.1

Did you find any workaround?

Use different values for Radius on each Platform.

Relevant log output

No response

@F-Goncalves F-Goncalves added the t/bug Something isn't working label Oct 12, 2022
@PureWeen
Copy link
Member

Duplicate of #8796

@PureWeen PureWeen marked this as a duplicate of #8796 Oct 12, 2022
@PureWeen PureWeen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2022
@dotnet dotnet locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants