I try to change picture of image1
. In collection I have "1.png" and "2.png".
In properties of image1
the Source
is "/Appname;component/pictures/1.png"
I wrote:
image1.Source = "/Appname;component/pictures/2.png";
but it doesn't work, of course, because "implicit conversion from string to System.Windows.Media.ImageSource is not possible".
How to change the picture in image1
to "2.png"?