diff --git a/src/Avalonia.Controls/Primitives/VisualLayerManager.cs b/src/Avalonia.Controls/Primitives/VisualLayerManager.cs index 385e7cc567..86aeb5c62a 100644 --- a/src/Avalonia.Controls/Primitives/VisualLayerManager.cs +++ b/src/Avalonia.Controls/Primitives/VisualLayerManager.cs @@ -55,8 +55,15 @@ namespace Avalonia.Controls.Primitives ((ILogical)layer).NotifyAttachedToLogicalTree(new LogicalTreeAttachmentEventArgs(_logicalRoot, layer, this)); InvalidateArrange(); } - - + + protected override void NotifyChildResourcesChanged(ResourcesChangedEventArgs e) + { + foreach (var l in _layers) + ((ILogical)l).NotifyResourcesChanged(e); + + base.NotifyChildResourcesChanged(e); + } + protected override void OnAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e) { base.OnAttachedToLogicalTree(e); @@ -74,7 +81,6 @@ namespace Avalonia.Controls.Primitives ((ILogical)l).NotifyDetachedFromLogicalTree(e); } - protected override Size MeasureOverride(Size availableSize) { foreach (var l in _layers)