Inheritance: RenderBoxBase, IDisposable
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
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;
 }