I want to put Image in code behind with the PATH of the image
Do you have something like:
imageViewer1.items.add(Path of the image);
thanks you
Gabriel Deschênes
Hello Gabriel,
You can use this (shortest) statement:
this.ImageViewer.Items.Add(new ImageItem(path_of_image, alt_for_image, tooltip_for_image))
Where, of course, you can leave a string.Empty, or just "" for ALT and ToolTip parameters.
Thus you can add ImageItem objects to the Items Collection. And For complete dcumentation on different contructors of ImageItem you can visit online help.