diff --git a/src/Core/src/Platform/Windows/WrapperView.cs b/src/Core/src/Platform/Windows/WrapperView.cs index 87b97ac29c1b..61ba7f84c08b 100644 --- a/src/Core/src/Platform/Windows/WrapperView.cs +++ b/src/Core/src/Platform/Windows/WrapperView.cs @@ -131,7 +131,9 @@ void UpdateBorder() if (_borderPath is null) { _borderPath = new(); - Children.Add(_borderPath); + + int index = _shadowCanvas is not null ? 1 : 0; + Children.Insert(index, _borderPath); } IShape? borderShape = Border.Shape;