Inheritance: CustomRenderBox
Exemple #1
0
 public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
 {
     if (imgRenderBox == null)
     {
         var renderBox = new CustomImageRenderBox(rootgfx, this.Width, this.Height);
         renderBox.SetLocation(this.Left, this.Top);
         renderBox.ImageBinder = imageBinder;
         renderBox.SetController(this);
         renderBox.BackColor = this.BackColor;
         SetPrimaryRenderElement(renderBox);
         this.imgRenderBox = renderBox;
     }
     return(this.imgRenderBox);
 }
Exemple #2
0
 public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
 {
     if (imgRenderBox == null)
     {
         var renderBox = new CustomImageRenderBox(rootgfx, this.Width, this.Height);
         renderBox.SetLocation(this.Left, this.Top);
         renderBox.ImageBinder = imageBinder;
         renderBox.SetController(this);
         renderBox.BackColor = this.BackColor;
         SetPrimaryRenderElement(renderBox);
         this.imgRenderBox = renderBox;
     }
     return this.imgRenderBox;
 }