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 } }