LayoutFarm.CustomWidgets.NinespaceBox.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);
                //------------------------------------------------------
                renderE.AddChild(boxCentral);
                //------------------------------------------------------
                renderE.AddChild(boxLeftTop);
                renderE.AddChild(boxRightTop);
                renderE.AddChild(boxLeftBottom);
                renderE.AddChild(boxRightBottom);
                //------------------------------------------------------
                renderE.AddChild(boxLeft);
                renderE.AddChild(boxRight);
                renderE.AddChild(boxTop);
                renderE.AddChild(boxBottom);
                //grippers
                if (this.ShowGrippers)
                {
                    renderE.AddChild(gripperLeft);
                    renderE.AddChild(gripperRight);
                    renderE.AddChild(gripperTop);
                    renderE.AddChild(gripperBottom);
                }
                //------------------------------------------------------
            }
            return base.GetPrimaryRenderElement(rootgfx);
        }