From 94cafcdc0aa3dae77905e9502333068ec0b48b23 Mon Sep 17 00:00:00 2001 From: xiaoy312 Date: Thu, 22 Jul 2021 17:09:20 -0400 Subject: [PATCH] fix(elevatedview): shadow not appearing on uwp --- src/Uno.UI.Toolkit/ElevatedView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uno.UI.Toolkit/ElevatedView.cs b/src/Uno.UI.Toolkit/ElevatedView.cs index 80a9f120a41d..7ea92c0d39c2 100644 --- a/src/Uno.UI.Toolkit/ElevatedView.cs +++ b/src/Uno.UI.Toolkit/ElevatedView.cs @@ -198,7 +198,7 @@ private void UpdateElevation() // it will get the right shape (with rounded corners) _border.SetElevationInternal(Elevation, ShadowColor); #elif NETFX_CORE || NETCOREAPP - (ElevatedContent as DependencyObject).SetElevationInternal(Elevation, ShadowColor, _shadowHost as DependencyObject, CornerRadius); + _border.SetElevationInternal(Elevation, ShadowColor, _shadowHost as DependencyObject, CornerRadius); #endif } }