title: WPF Combobox DisplayMemberPath
body: <p>Ok, I looked at other questions and didn't seem to get my answer so hopefully someone here can.</p>
  
  <p>Very simple question why does the DisplayMemberPath property not bind to the item? </p>
  
  <pre><code>&lt;ComboBox Grid.Row="1" Grid.Column="2" ItemsSource="{Binding PromptList}" DisplayMemberPath="{Binding Name}" SelectedItem="{Binding Prompt}"/&gt;
  </code></pre>
  
  <p>The trace output shows that it is trying to bind to the class holding the IEnumerable not the actual item in the IEnumerable. I'm confused as to a simple way to fill a combobox without adding a bunch a lines in xaml. </p>
  
  <p>It simply calls the ToString() for the object in itemssource. I have a work around which is this:</p>
  
  <pre><code>&lt;ComboBox Grid.Row="1" Grid.Column="2" ItemsSource="{Binding PromptList}"  SelectedItem="{Binding Prompt}"&gt;
      &lt;ComboBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock Text="{Binding Name}"/&gt;
          &lt;/DataTemplate&gt;
      &lt;/ComboBox.ItemTemplate&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>But in my opinion it's too much for such a simple task. Can I use a relativesource binding?</p>