title: How to fill WPF combobox with text & image at runtime
body: <p>I am trying to copy a WinForms application using WPF.</p>
  
  <p>In my application I have a ComboBox that is filled with the titles of movies, to let me search the movies. Now that I'm porting it to WPF, I want to use the ComboBox to display the title and poster image of the movie.</p>
  
  <p>I have already created the ComboBox and the two objects, but don't know how to populate the ComboBox at runtime, because the Add method doesn't let me add the two objects at one.</p>
  
  <pre><code>combobox.items.add()
  </code></pre>
  
  <p>Please help me find out how to fill the ComboBox with text and images at runtime.</p>
  
  <p>update: this is the xaml code for the combobox</p>
  
  <pre><code>&lt;ComboBox x:Name="busca_pelicula" HorizontalAlignment="Left" VerticalAlignment="Top" Width="334" Margin="147,93,0,0" IsEditable="True"&gt;
      &lt;ComboBox.Effect&gt;
          &lt;DropShadowEffect/&gt;
      &lt;/ComboBox.Effect&gt;
      &lt;TextBox HorizontalAlignment="Left" VerticalAlignment="Center" Name="PeliText"/&gt;
      &lt;Image HorizontalAlignment="Right" Height="50" VerticalAlignment="Center" Width="50"/&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>and the code for fill the combobox with my data from my movie database is this</p>
  
  <pre><code>busca_pelicula.Items.clear();
  </code></pre>
  
  <p>using sql stuff to retrieve title and movie poster</p>
  
  <pre><code>BitmapImage ImagenPoster = new BitmapImage();
  ImagenPoster.BeginInit();
  ImagenPoster.UriSource = new Uri(wMediaPath+"Peli\\"+wNombrePoster);
  ImagenPoster.EndInit();
  
  busca_pelicula.Items.Add(? don't know what to put here)
  </code></pre>