protected virtual void InternalClear() { // Remove the parent relationships foreach (IDockingElement element in this) element.Parent = null; _elements.Clear(); }