public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (renderShape == null) { renderShape = new GraphicShapeRenderElement(rootgfx, this.Width, this.Height); renderShape.SetLocation(this.Left, this.Top); renderShape.SetController(this); this.SetPrimaryRenderElement(renderShape); } return this.renderShape; }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (renderShape == null) { renderShape = new GraphicShapeRenderElement(rootgfx, this.Width, this.Height); renderShape.SetLocation(this.Left, this.Top); renderShape.SetController(this); this.SetPrimaryRenderElement(renderShape); } return(this.renderShape); }