public static UIComponent ScrollableContainer(this UIComponent parentNode, Action <UIComponent> handler)
        {
            UIScrollableContainer child = new UIScrollableContainer();

            parentNode.AddChild(child);
            handler?.Invoke(child);
            UIComponent childInner = child.Children.FirstOrDefault();

            if (childInner != null)
            {
                child.AddStack(childInner);
            }

            return(child);
        }
 private static UIComponent AddNode(UIComponent parent, UIComponent newChild, Action <UIComponent> handler)
 {
     parent.AddChild(newChild);
     handler?.Invoke(newChild);
     return(newChild);
 }