Browse Source
Merge pull request #9487 from AvaloniaUI/fixes/recalculate-children-for-parent-on-attachment
Recalculate parent's child render nodes on visual tree attachment
pull/9589/head
Steven Kirk
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/Avalonia.Base/Visual.cs
|
|
|
@ -417,6 +417,7 @@ namespace Avalonia |
|
|
|
OnAttachedToVisualTree(e); |
|
|
|
AttachedToVisualTree?.Invoke(this, e); |
|
|
|
InvalidateVisual(); |
|
|
|
_visualRoot.Renderer?.RecalculateChildren(_visualParent!); |
|
|
|
|
|
|
|
if (ZIndex != 0 && VisualParent is Visual parent) |
|
|
|
parent.HasNonUniformZIndexChildren = true; |
|
|
|
|