LayoutFarm.CustomWidgets.EaseBox.AddChild C# (CSharp) Method

AddChild() public method

public AddChild ( UIElement ui ) : void
ui LayoutFarm.UI.UIElement
return void
        public void AddChild(UIElement ui)
        {
            if (this.uiList == null)
            {
                this.uiList = new UICollection(this);
            }

            needContentLayout = true;
            this.uiList.AddUI(ui);
            if (this.HasReadyRenderElement)
            {
                primElement.AddChild(ui);
                if (this.panelLayoutKind != BoxContentLayoutKind.Absolute)
                {
                    this.InvalidateLayout();
                }
            }

            if (ui.NeedContentLayout)
            {
                ui.InvalidateLayout();
            }
        }
        public void RemoveChild(UIElement ui)