title: Type name showing up in WPF drop-down list
body: <p>I'm binding a <code>List&lt;SelectItem&gt;</code> to a <code>ComboBox</code> using MVVM.  The combobox has the right value and looks fine.  However, when I click on the down button to see all the options in the combobox, I get a list of 10 items that each read <code>MyNamespace.SelectItem</code>.  If I select #2, the value in the combobox then reads <code>2</code>.</p>
  
  <p>Here's the code for <code>SelectItem</code>:</p>
  
  <pre><code>public class SelectItem
  {
      public string Value { get; set; }
      public string Display { get; set; }
  }
  </code></pre>
  
  <p>My XAML:</p>
  
  <pre><code>&lt;ComboBox ItemsSource="{Binding Path=MyList}" DisplayMemberPath="Display" SelectedValue="{Binding Path=MyListValue, Mode=TwoWay}" /&gt;
  </code></pre>
  
  <p>And here's where I queue up a list of <code>SelectItems</code>:</p>
  
  <pre><code>        MyList= new List&lt;SelectItem&gt;();
          for (int i = 1; i &lt;= 10; i++)
          {
              var page = new SelectItem()
              {
                  Display = i.ToString(),
                  Value = i.ToString()
              };
              MyList.Add(page);
              if (i == 1)
                  MyListValue = page;
          }
  </code></pre>