title: How to bind a Dictionary to Combobox in WPF
body: <p>When I bind <code>FoundItems</code> dictionary to a ComboBox, ComboBoxItems items became like <code>[1, FoundItem], [2, FoundItem] ...</code>.</p>
  
  <p>But I want to bind <code>RecordName</code> as shown value, <code>RecordID or Dictionary's Key</code> as selected item. 
  And, <code>SelectedItemID</code> should be bound to the ComboBox with <code>TwoWay</code>.</p>
  
  <p>I am trying to achieve this for 2 days. And still no result.</p>
  
  <pre><code>public int SelectedItemID { get; set; }
  public Dictionary&lt;int, FoundItem&gt; FoundItems { get; set; }
  
  
      FoundItems = new Dictionary&lt;int, FoundItem&gt;
      {
          { 1, new FoundItem() { RecordID = 1, RecordName = "Test Name 1" } },
          { 2, new FoundItem() { RecordID = 2, RecordName = "Test Name 2" } },
          { 3, new FoundItem() { RecordID = 3, RecordName = "Test Name 3" } },
          { 4, new FoundItem() { RecordID = 4, RecordName = "Test Name 4" } }
      };
  </code></pre>
  
  <p><strong>FoundItem class:</strong> </p>
  
  <pre><code>internal class FoundItem
  {
      public int RecordID { get; set; }
      public string RecordName { get; set; }
  }
  </code></pre>