title: Bind collection to combobox
body: <p>I have this combobox</p>
  
  <pre><code>&lt;ComboBox  Height="30" SelectedIndex="0" Margin="5 3 5 3" Width="170" ItemsSource="{Binding WonderList}" SelectedValuePath="selectedWonder"&gt;
      &lt;ComboBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;WrapPanel&gt;
                  &lt;Image Source="{Binding Path}" Height="20"&gt;&lt;/Image&gt;
                  &lt;Label Content="{Binding Name}" Style="{StaticResource LabelComboItem}"&gt;&lt;/Label&gt;
              &lt;/WrapPanel&gt;
          &lt;/DataTemplate&gt;
      &lt;/ComboBox.ItemTemplate&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>where I want to show items as an image plus a text. </p>
  
  <p>This is the business class for the objects in the item list</p>
  
  <pre><code>public class Wonder: INotifyPropertyChanged
  {
      private string name;
      private string path;
      public event PropertyChangedEventHandler PropertyChanged;
  
      #region properties, getters and setters
      public String Name { get; set; }
      public String Path { get; set; }
      #endregion
  
      public Wonder(string name, string path)
      {
          this.name = name;
          this.path = path;
      }
  
      protected void OnPropertyChanged(string name)
      {
          PropertyChangedEventHandler handler = PropertyChanged;
          if (handler != null)
          {
              handler(this, new PropertyChangedEventArgs(name));
          }
      }
  }
  </code></pre>
  
  <p>and the code behind of the window</p>
  
  <pre><code>public class Window1 {
      public List&lt;Wonder&gt; WonderList;
  
      public Window1()
      {
          InitializeComponent();
          WonderList = new List&lt;Wonder&gt;();
          WonderList.Add(new Wonder("Alexandria", "Resources/Images/Scans/Wonders/Alexandria.jpg"));
          WonderList.Add(new Wonder("Babylon", "Resources/Images/Scans/Wonders/Babylon.jpg"));
      }
  }
  </code></pre>
  
  <p>I´m pretty new to this xaml "magic" and guess I dont understand correctly how the data binding works, I think that with <code>ItemsSource="{Binding WonderList}"</code> it should take the collection with that name (from the code behind) and show their Name and Path, but it shows an empty list. </p>
  
  <p>If I do <code>Combo1.ItemsSource = WonderList;</code> in the code behind (I prefer to use the xaml and avoid the code behind), it shows two blank slots but still don´t know how to show the items.</p>
  
  <p>Can you point me in the right direction? </p>
  
  <p>Thanks</p>