LayoutFarm.CustomWidgets.ListItem.GetPrimaryRenderElement C# (CSharp) Method

GetPrimaryRenderElement() public method

public GetPrimaryRenderElement ( RootGraphic rootgfx ) : RenderElement
rootgfx RootGraphic
return RenderElement
        public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
        {
            if (primElement == null)
            {
                //1.
                var element = new CustomContainerRenderBox(rootgfx, this.Width, this.Height);
                element.SetLocation(this.Left, this.Top);
                element.BackColor = this.backColor;
                element.SetController(this);

                listItemText = new CustomTextRun(rootgfx, 200, this.Height);
                element.AddChild(listItemText);
                listItemText.TransparentForAllEvents = true;
                if (this.itemText != null)
                {
                    listItemText.Text = this.itemText;
                }

                this.primElement = element;
            }
            return primElement;
        }
        public Color BackColor