protected VGroup WrapVBox(Component parent, params DisplayListMember[] children)
    {
        VGroup wrapper = new VGroup { HorizontalAlign = HorizontalAlign.Center, Gap = 10 };
        parent.AddChild(wrapper);

        foreach (DisplayListMember child in children)
        {
            wrapper.AddChild(child);
        }
        return wrapper;
    }
    protected HGroup WrapHBox(Component parent, params DisplayListMember[] children)
    {
        HGroup wrapper = new HGroup { HorizontalAlign = HorizontalAlign.Left, VerticalAlign = VerticalAlign.Middle };
        parent.AddChild(wrapper);

        foreach (DisplayListMember child in children)
        {
            wrapper.AddChild(child);
        }
        return wrapper;
    }
Example #3
0
    private static VGroup WrapVBox(Component parent, params DisplayListMember[] children)
    {
        VGroup wrapper = new VGroup {
            HorizontalAlign = HorizontalAlign.Center
        };

        parent.AddChild(wrapper);

        foreach (DisplayListMember child in children)
        {
            wrapper.AddChild(child);
        }
        return(wrapper);
    }
Example #4
0
    private static HGroup WrapHBox(Component parent, params DisplayListMember[] children)
    {
        HGroup wrapper = new HGroup {
            HorizontalAlign = HorizontalAlign.Left, VerticalAlign = VerticalAlign.Middle
        };

        parent.AddChild(wrapper);

        foreach (DisplayListMember child in children)
        {
            wrapper.AddChild(child);
        }
        return(wrapper);
    }