I have an image ("test1.png") in the Resources folder... in XAML, I can set an image by using:
<Image Name="myImage" Source="Resources/test1.png" />
Now I have another image ("test2.png") in the Resources folder, how do I set myImage to "test2.png" in the code behind?
I googled and found solutions that seem pretty complex for such a trival task, by using Reflection during runtime. Is there a simpler solution?