diff --git a/Perspex.Controls/Panel.cs b/Perspex.Controls/Panel.cs index a001cc5797..bd4033e1e9 100644 --- a/Perspex.Controls/Panel.cs +++ b/Perspex.Controls/Panel.cs @@ -98,8 +98,8 @@ namespace Perspex.Controls switch (e.Action) { case NotifyCollectionChangedAction.Add: - this.AddVisualChildren(e.NewItems.OfType()); this.SetLogicalParent(e.NewItems.OfType()); + this.AddVisualChildren(e.NewItems.OfType()); break; case NotifyCollectionChangedAction.Remove: