From 0275d090e8028d9dbb47cb01d1e687796c5f1ebd Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Thu, 16 Jul 2020 16:50:28 -0400 Subject: [PATCH] feat(elevatedview): ElevatedView on Android now supports setting the shadow color. --- src/Uno.UI.Toolkit/UIElementExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Uno.UI.Toolkit/UIElementExtensions.cs b/src/Uno.UI.Toolkit/UIElementExtensions.cs index c89a2abb68f4..8ecc0210cd75 100644 --- a/src/Uno.UI.Toolkit/UIElementExtensions.cs +++ b/src/Uno.UI.Toolkit/UIElementExtensions.cs @@ -67,6 +67,10 @@ internal static void SetElevationInternal(this DependencyObject element, double if (element is Android.Views.View view) { AndroidX.Core.View.ViewCompat.SetElevation(view, (float)Uno.UI.ViewHelper.LogicalToPhysicalPixels(elevation)); +#if __ANDROID_28__ + view.SetOutlineAmbientShadowColor(shadowColor); + view.SetOutlineSpotShadowColor(shadowColor); +#endif } #elif __IOS__ if (element is UIKit.UIView view)