public List <UiElement> FindAll(TreeScope scope, ConditionBase condition) { List <UiElement> uiList = new List <UiElement>(); var list = new List <UiElement>(); var children = uiNode.FindAll(scope, condition); foreach (var item in children) { list.Add(new UiElement(item, this)); } return(list); }