示例#1
0
 public void RemoveChild(DisplayObject child, bool dispose = false)
 {
     _children.Remove(child);
     child._parent = null;
     if (dispose) child.Dispose();
     CalculateBounds();
 }
示例#2
0
 public void AddChild(DisplayObject child)
 {
     _children.Add(child);
     child._parent = this;
     CalculateBounds();
 }