From: jpbruyere Date: Tue, 15 Sep 2015 16:20:42 +0000 (+0200) Subject: clear binding of child when removed from group X-Git-Tag: 0.2~9 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=ff40620eabeaacb63d54aaa06c3a09bec49d1fca;p=jp%2Fcrow.git clear binding of child when removed from group --- 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); }