protected void RemoveChild(Control child) { GetUnderlyingObject().RemoveChild(child.GetUnderlyingObject()); _children.Remove(child); OnChildRemoved(child); }
protected void AddChild(Control child) { GetUnderlyingObject().AddChild(child.GetUnderlyingObject()); _children.Add(child); OnChildAdded(child); }
protected virtual void OnChildRemoved(Control child) { DoLayout(); }
protected override void OnChildRemoved(Control child) { base.OnChildRemoved(child); }