Image not change at runtime

0
0

Hi Wisej,

How to change Image propertis at runtime?

Thank you.

Attachment
  • You must to post comments
0
0

Hi,

the fix is included in Wisej 2.0.36

Please note that (same in Winforms) if you change an image in an imagelist after the image is loaded the control doesn’t know that the imagelist changed and the imagelist doesn’t know which controls are using it.

To update it set (or reset) the ImageIndex or ImageKey on the control. Calling control.Update() doesn’t do anything since nothing changed.

Best regards
Frank

  • You must to post comments
0
0

Hi,

The issue has been fixed and will be available in the next release.

Best,

Levie

  • You must to post comments
0
0

Hi,

There is an issue with Wisej’s ImageList.  You will need to re-set the ImageIndex of the control after you change the ImageList image and that should update the other controls accordingly. You can see that’s the same behavior as in WinForms.

I have logged the issue as #1949.

I’ll keep you updated when it’s fixed!

Best regards,

Levie

  • Huỳnh Tấn Phát
    It happens to Image property of ToolBarItem and Panel control, too. When changing ToolBarItem.Image=value or Panel.Image=value. Image of ToolbarItem and Panel is not change.
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.