internal void ClearPanes() { for(var i = Controls.Count - 1; i >= 0; i--) if(Controls[i] is AccordionPane) Controls.RemoveAt(i); }