Hey. I have an object that has a string property called BackgroundColor. This string is the hexidecimal representation of a color. I cannot change this object.
I’m binding a collection of these objects to a listView. What I would like to do is bind the background of the listview’s row to the BackgroundColor property of the object that is displayed in the row.
What is the best way to to this?
I think using a IValueConverter is the appropriate solution. You could make a HexConverter that converts the string hex value to Color. That link should get you started.