Inheritance: LayoutFarm.CustomWidgets.CustomRenderBox
コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }