PictureBox BackGroundImage and Image

0
0

Hi

If we have both BackGroundImage and Image property set for the PictueBox control, it only displays the BackGroundImage.

Is it possible to display the image on top and BackGroundImage behind it?

We are trying to migrate from VisualWebgui to WiseJ. The control in visual webgui have both these properties set and displays as intended.

Please suggest how this can be done.

 

thanks

praveena

 

  • You must to post comments
0
0

Thank you. The InitScript helped to position the images correctly.

One quick question. The PictureBox BackgroundImageLayout when set to None, it is displayed as Tile in the WiseJ side.  Is this a known issue?

 

  • Alaa (ITG)
    Hi Praveena, It’s a bug and a fix will be included in the next build. Just note that in the designer, if the Image is an SVG it will always show in the middle and that’s because the designer uses IE under the hood but when the image is in PNG format, it will display correctly!. I’ll let you know when the new build comes. Best regards, Alaa.
  • You must to post comments
0
0

Hi Praveena,

In the PictureBox’s InitScript property you can add this line

this.getContentElement().removeStyle(“zIndex”);

Removing the z-index style makes the pseudo elements display below the main element (it may depend on the browser).

I’ve attached a sample too.

Hope this helps!

Best regards,
Alaa

  • You must to post comments
0
0

Hi Alaa

Thanks for the response.

Just wanted to check if any updates on this.

I noticed that both properties Image and BackGroundImage are being set. But I guess Image is displayed behind the BackGroundImage. Is it possible to display it the other way around(BackGroundImage behind Image)?

Thanks

Praveena

  • You must to post comments
0
0

Hi Praveena,

Thank you for reporting this issue.

We’re currently investigating it and we’ll get back to you with a response soon!

Best regards,
Alaa

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.