public static IReadOnlyList <string> GetChildren(this UiElement container) { return(container.FindTextBlocks("ChildTextBlock") .Select(x => x.Text) .ToList()); }