Example #1
0
 public override RenderElement GetPrimaryRenderElement()
 {
     if (_canvasRenderElement == null)
     {
         var canvas = new MiniAggCanvasRenderElement(this.Width, this.Height);
         canvas.SetLocation(this.Left, this.Top);
         canvas.Painter.StrokeWidth = 1;
         canvas.Painter.StrokeColor = PixelFarm.Drawing.Color.Black;
         _canvasRenderElement       = canvas;
         canvas.SetController(this);
     }
     return(_canvasRenderElement);
 }
Example #2
0
 public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
 {
     if (canvasRenderElement == null)
     {
         var canvas = new MiniAggCanvasRenderElement(rootgfx, this.Width, this.Height);
         canvas.HasSpecificHeight = this.HasSpecificHeight;
         canvas.HasSpecificWidth  = this.HasSpecificWidth;
         canvas.SetLocation(this.Left, this.Top);
         canvas.Painter.StrokeWidth = 1;
         canvas.Painter.StrokeColor = PixelFarm.Drawing.Color.Black;
         this.canvasRenderElement   = canvas;
         canvas.SetController(this);
     }
     return(canvasRenderElement);
 }
 public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
 {
     if (canvasRenderElement == null)
     {
         var canvas = new MiniAggCanvasRenderElement(rootgfx, this.Width, this.Height);
         canvas.HasSpecificHeight = this.HasSpecificHeight;
         canvas.HasSpecificWidth = this.HasSpecificWidth;
         canvas.SetLocation(this.Left, this.Top);
         canvas.Painter.StrokeWidth = 1;
         canvas.Painter.StrokeColor = PixelFarm.Drawing.Color.Black;
         this.canvasRenderElement = canvas;
         canvas.SetController(this);
     }
     return canvasRenderElement;
 }