Rotate ImageSource

0
0

Hi,

Is it possible to rotate ImageSource of any control at any angle for svg images?

e.g.  Imagesource=”pin?color=red&rotate=90″

For PictureBox, rotating the control is possible with css but it would be nice for ImageSource of any control.

 

Thank you

  • You must to post comments
0
0

Hi Serkan,

a generic approach like the one you suggested is not possible.
You have to apply CSS to the child widget.

This can either be done with a javascript call/eval see here

https://docs.wisej.com/docs/concepts/javascript

or in InitScript to have it persistently.

The call could look like this (depending on the control you´re using it for):

 this.getChildControl("icon").getContentElemenet().setStyle(...)

Hope this helps.

Best regards
Frank

 

 

  • Serkan
    Hi Frank, Succeded on a form “Appear” event Eval(“this.getChildControl(‘icon’).getContentElement().setStyle(‘transform’,’rotate(90deg)’);”) Thanks
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.