title: ComboBox ItemTemplate does not support values of type 'Image'
body: <p>I'm trying to bind a WPF combobox to an observable collection of images.
  Here is my collection:</p>
  
  <pre><code>    public class AvatarPhoto
      {
          public int AvatarId { get; set; }
          public BitmapImage AvatarImage { get; set; }
      }
      public ObservableCollection&lt;AvatarPhoto&gt; AvailableProfilePictures { get; private set; }
  </code></pre>
  
  <p>Here is my xaml:
  <img src="https://i.stack.imgur.com/iAIsc.png" alt="enter image description here"></p>
  
  <p>Visual Studio gives me this compile time error:
  Property 'ItemTemplate' does not support values of type 'Image'.</p>
  
  <p>Why is this error seen?</p>
  
  <p>Thanks</p>
  
  <p>Update: thanks for the answer! It solved the problem.</p>
  
  <p>Now I have updated my code but I'm seeing this in the ComboBox:
  <img src="https://i.stack.imgur.com/jaMnT.png" alt="enter image description here"></p>
  
  <p>Why is it not displaying pictures correctly? In the debug window I can see my collection is correctly populated:</p>
  
  <p><img src="https://i.stack.imgur.com/ap0pI.png" alt="enter image description here"></p>