]> O.S.I.I.S - jp/crow.git/commitdiff
ensure bindings are resolved as soon as chil is added
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 8 Mar 2016 07:39:45 +0000 (08:39 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 8 Mar 2016 07:39:45 +0000 (08:39 +0100)
src/GraphicObjects/Group.cs

index 5183712d1c230335931ee4008ccd3ef02a211cdf..9d458c1dd50c6ccbe82f48fe2a445e32d7c7533a 100644 (file)
@@ -44,8 +44,9 @@ namespace Crow
         public virtual T AddChild<T>(T child)
         {
                        GraphicObject g = child as GraphicObject;
-            Children.Add(g);
-            g.Parent = this as GraphicObject;            
+                       Children.Add(g);
+                       g.Parent = this as GraphicObject;
+                       ResolveBindings ();
                        g.RegisterForLayouting (LayoutingType.Sizing | LayoutingType.ArrangeChildren);
                        g.LayoutChanged += OnChildLayoutChanges;
             return (T)child;