/// <summary>
 /// Removes child from the component list, and updates the child's parent.
 /// </summary>
 /// <param name="child"></param>
 public virtual void RemoveChild(XnaUIComponent child)
 {
     if (child != null)
     {
         // This will remove the child from the component list.
         child.SetParent(null);
         //DoLayout();
     }
 }
 /// <summary>
 /// Adds child to the component list, and updates the child's parent.
 /// </summary>
 /// <param name="child"></param>
 public virtual void AddChild(XnaUIComponent child)
 {
     if (child != null)
     {
         child.SetParent(this);
         components.Add(child);
         //DoLayout();
     }
 }
 /// <summary>
 /// Adds child to the component list, and updates the child's parent.
 /// </summary>
 /// <param name="child"></param>
 public virtual void AddChild(XnaUIComponent child)
 {
     if (child != null)
     {
         child.SetParent(this);
         components.Add(child);
         DoLayout();
     }
 }
 /// <summary>
 /// Removes child from the component list, and updates the child's parent.
 /// </summary>
 /// <param name="child"></param>
 public virtual void RemoveChild(XnaUIComponent child)
 {
     if (child != null)
     {
         // This will remove the child from the component list.
         child.SetParent(null);
         DoLayout();
     }
 }