Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Cannot set shadow direction in Android version of Xamarin.Forms app

$
0
0

I have a custom Frame element with a HasShadow set to true and ShadowRadius to 1.

Under Android this correctly renders a Shadow under the frame.
I'm also seeing a shadow under the element in iOS (it's using a custom renderer for iOS specifically to alter the shadow, but it's not using any custom renderers with Android). This custom iOS renderer has allowed me to set the shadow direction as desired.

Now I would like to have that shadow under Android (or both OS) only be to the right side of the frame and not in the other directions (the shadow is heaviest under the element right now). How do I do this Android? Can I do it without implementing a custom renderer?

I have tried to find some sort of ShadowDirection property. I have also tried using a custom renderer for Android but so far it doesn't render the shadows correctly at all.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>