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.
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.