public virtual void Remove(IVisualElement child) { if (Children.Contains(child)) { child.Parent = null; Children.Remove(child); child.Dispose(); } }