LayoutFarm.DzBoardSample.UIControllerBox.GetPrimaryRenderElement C# (CSharp) Method

GetPrimaryRenderElement() public method

public GetPrimaryRenderElement ( RootGraphic rootgfx ) : RenderElement
rootgfx RootGraphic
return RenderElement
        public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
        {
            if (!this.HasReadyRenderElement)
            {
                var renderE = base.GetPrimaryRenderElement(rootgfx);
                if (contentBox != null)
                {
                    renderE.AddChild(contentBox);
                }

                //------------------------------------------------------

                renderE.AddChild(boxLeftTop);
                renderE.AddChild(boxRightTop);
                renderE.AddChild(boxLeftBottom);
                renderE.AddChild(boxRightBottom);
                //------------------------------------------------------
            }
            return base.GetPrimaryRenderElement(rootgfx);
        }
        public override void SetLocation(int left, int top)