Display image based on string value

RK62

Active member
Joined
Dec 29, 2010
Messages
33
Programming Experience
3-5
I'm looking a way to display a country flag (an image/icon) in an image control that is tied to a grid control that is tied to my custom object. In my custom object I have a field defined as String, which has a country name.

For example, the selected row in the grid may contain a country named "Germany" and the image control should then display a flag of Germany.
I obviously have all possible flags imported as pictures or icons.

Is this binding something that can be done through a value converter?
If anybody could display some guidelines how to achieve this in WPF.
 
Back
Top