aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-15 18:20:42 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-15 18:20:42 +0200
commitff40620eabeaacb63d54aaa06c3a09bec49d1fca (patch)
tree783619eb109c5d88f33bb01aa993b311964974f1 /src/GraphicObjects
parent7c25a2d5a5fdf97184eaac20951453e4f442d310 (diff)
clear binding of child when removed from group
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/Group.cs5
1 files 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);
}