public virtual void Remove(Widget w) { if (w == null) return; widgets.Remove (w); w.Container = null; if (widgets.Count < 1) this.CanFocus = false; }