Hi. How would you go about to change the source of an image from the .cs file? I've tried this:
xaml.cs:
The xaml file has a control <image Name="img" /> residing in it.
Would binding in some kind of way solve this?
Sorry for the basic question, but I've searched and wasn't able to find anything that covers this.
xaml.cs:
Code:
BitmapImage yesImage = new BitmapImage(new Uri("/Test;component/Images/yes.png"));
img.Source = yesImage;
Would binding in some kind of way solve this?
Sorry for the basic question, but I've searched and wasn't able to find anything that covers this.
Last edited: