title: WPF - Bind image property to Image control
body: <p>Suppose I have <strong>string Name</strong> and <strong>Image Photo</strong> as properties of a class in my DataContext. I need to bind them to controls is a DataTemplate. </p>
  
  <p>I thought this would work but it doesn't:</p>
  
  <pre><code>&lt;Image Source="{Binding Photo}"/&gt;
  </code></pre>
  
  <p>Why not? Should I my Photo have another type? (BitmapImage perhaps?)</p>
  
  <p>How can I bind an Image control to an Image property?</p>
  
  <p>Thanks!</p>
  
  <p>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?</p>