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

White Shadow on Android BlurRadius #15

Closed
andre-laskawy opened this issue Nov 25, 2020 · 4 comments
Closed

White Shadow on Android BlurRadius #15

andre-laskawy opened this issue Nov 25, 2020 · 4 comments

Comments

@andre-laskawy
Copy link

Using the Android Blur Radius, e.g. like this

        <materialFrame:MaterialFrame
            Padding="0"
            AndroidBlurRadius="20"
            MaterialBlurStyle="{DynamicResource DynamicBlurStyle}"
            MaterialTheme="AcrylicBlur" />

and then putting any white control on it (e.g. a White Button) results in a light white shadow around the control, I couldn't find any solution to get rid of the shadow:

image

@roubachof
Copy link
Owner

Set the AndroidMaterialFrameRenderer.ThrowStopExceptionOnDraw to true

@andre-laskawy
Copy link
Author

Nice, that worked! Can't debug with this flag on, but I can get around this with a compiler constant.

@roubachof
Copy link
Owner

https://github.com/roubachof/Sharpnado.MaterialFrame#androidmaterialframerendererthrowstopexceptionondraw

yup this is a xamarin.android issue, is should be fixed in 16.8 though according to dotnet/android#4548

@andre-laskawy
Copy link
Author

ohh ... I really should start reading the documentation. Cheers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants