From ff40620eabeaacb63d54aaa06c3a09bec49d1fca Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 15 Sep 2015 18:20:42 +0200 Subject: [PATCH] clear binding of child when removed from group --- src/GraphicObjects/Group.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index f58fdf35..763cc091 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -47,9 +47,10 @@ namespace go return (T)child; } public virtual void removeChild(GraphicObject child) - { + { + child.ClearBinding (); + child.Parent = null; Children.Remove(child); - child.Parent = null; this.RegisterForLayouting ((int)LayoutingType.Sizing); } -- 2.47.3