Depending on where the image is and if you want to use an embedded image or a file:
To use a file:
control.ImageSource = “TrashCan.gif”;
control.ImageSource = “Images/TrashCan.gif”;
control.ImageSource = “http://server-somewhere.com/TrashCan.gif”;
To use resources instead use the Image property as in winforms:
control.Image = Resource.TrashCan;
Basically Image works exactly like in winforms. ImageSource takes a string which can be a name in the theme, a url, or a file name in the project.
Please login first to submit.