public static List<UIElement> GetUIMap() { List<UIElement> retList = new List<UIElement>(); try { foreach (var u in UIElement.UIMap) { retList.Add(u); } } catch { } return retList; }