From ff5f1a5b8483459082ec4377ee61840b3ef6b679 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 18 Aug 2019 18:34:15 +0200 Subject: [PATCH] added a simple GetChildren too --- Demos/UiDemo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Demos/UiDemo.cs b/Demos/UiDemo.cs index 65e7ff9..fffc755 100644 --- a/Demos/UiDemo.cs +++ b/Demos/UiDemo.cs @@ -136,6 +136,10 @@ namespace Demos { // Below are some querying examples that help you find certain elements easily + var children = root.GetChildren(); + var totalChildren = root.GetChildren(regardChildrensChildren: true); + Console.WriteLine($"The root has {children.Count()} children, but there are {totalChildren.Count()} when regarding children's children"); + var textFields = root.GetChildren(); Console.WriteLine($"The root has {textFields.Count()} text fields");