Great!!!
I have created a stackpanel height=1px width=1px hidden into the main form and i have added the images to it, and now magically the function works fine!
I don't understand why, but now it works!
I think the constructor of the ui.image object do the refresh layout only when the image has a parent object contained into the main layout UI...
AloneI would neverunderstand...
Thank you very much mSpot Inc!!!
Have a nice day