Suppose I have string Name and Image Photo as properties of a class in my DataContext. I need to bind them to controls is a DataTemplate.
I thought this would work but it doesn't:
<Image Source="{Binding Photo}"/>
Why not? Should I my Photo have another type? (BitmapImage perhaps?)
How can I bind an Image control to an Image property?
Thanks!
Edit: As usual, after clicking submit I saw that the error is very clear: there's no converter from Image to ImageSource. How would my converter be to convert Image to ImageSource?