I am new to WPF so hopefully I phrased the question correctly. What I'd like to do is bind my <Image>
to an image online. However, the image I would like to bind to changes depending on the state of the application. For example, if I wanted to bind to an Employee selected from a list, I'd retrieve a base URL from my App.config and append the image name using the ID of the employee, like so:
var baseUrl = ConfigurationSettings.AppSettings["BaseImageUrl"];
var imageUrl = String.Format("{0}/{1}.jpg", baseUrl, employeeID);
The problem is, I'm not sure how to do this declaratively in WPF. Any help is greatly appreciated!