I am making a SilverLight 4 program in which I want an image to be changed when user click a button.
This is simple and straight forward if I am implementing desktop or ASP program: just build the bitmap with the new image URI (hard-coded in the code) and assign the bitmap to Image.Source property.
However, it seems non-trivial to me in SilverLight, because the application is hosted in the server but executed in the client. The client computer wouldn't have the path specified by the URI.
Can you tell me how to make it work? If there is an example then it will be great.