diff --git a/src/Avalonia.Base/Media/Effects/DropShadowEffect.cs b/src/Avalonia.Base/Media/Effects/DropShadowEffect.cs index 835a142d8a2..b9420a18962 100644 --- a/src/Avalonia.Base/Media/Effects/DropShadowEffect.cs +++ b/src/Avalonia.Base/Media/Effects/DropShadowEffect.cs @@ -99,6 +99,11 @@ public double Direction public double OffsetX => Math.Cos(Direction * Math.PI / 180) * ShadowDepth; public double OffsetY => Math.Sin(Direction * Math.PI / 180) * ShadowDepth; - + + static DropShadowDirectionEffect() + { + AffectsRender(ShadowDepthProperty, DirectionProperty); + } + public IImmutableEffect ToImmutable() => new ImmutableDropShadowDirectionEffect(OffsetX, OffsetY, BlurRadius, Color, Opacity); -} \ No newline at end of file +}