private static void CollapseList(ExpandCollapsePattern expandCollapsePattern) { expandCollapsePattern.Collapse(); Thread.Sleep(50); }