public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.SetController(this); renderE.HasSpecificSize = true; //------------------------------------------------ //create visual layer int uiCount = this.uiList.Count; for (int m = 0; m < uiCount; ++m) { renderE.AddChild(uiList.GetElement(m)); } //--------------------------------- renderE.SetVisible(this.Visible); primElement = renderE; } return(primElement); }
// public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (_primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.SetLocation(this.Left, this.Top); renderE.NeedClipArea = this.NeedClipArea; renderE.TransparentForAllEvents = this.TransparentAllMouseEvents; renderE.SetVisible(this.Visible); renderE.BackColor = _backColor; renderE.BorderColor = _borderColor; renderE.SetBorders(BorderLeft, BorderTop, BorderRight, BorderBottom); BuildChildrenRenderElement(renderE); _primElement = renderE; } return(_primElement); }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.SetController(this); renderE.HasSpecificSize = true; //------------------------------------------------ //create visual layer int uiCount = this.uiList.Count; for (int m = 0; m < uiCount; ++m) { renderE.AddChild(uiList.GetElement(m)); } //--------------------------------- renderE.SetVisible(this.Visible); primElement = renderE; } return primElement; }