title: Key Value Pair Combobox in WPF
body: <p>Consider I have Key Value Pair Collection (Ex Key=MSFT Value=MSFT Microsoft) which I bind to the ComboBox. DisplayMemeberPath=Value. the Following needs to be accomplished</p>
  
  <ul>
  <li><p>On Selection of a Item only the Key needs to be displayed in Combo,</p></li>
  <li><p>the user could also type a brand new value in the Combo.</p></li>
  </ul>
  
  <p>I cant come up with the solution that supports both these features. Solving one breaks the other.</p>
  
  <pre><code>&lt;ComboBox IsTextSearchEnabled="True" Name="cmbBrokers" IsEditable="True" 
  ItemsSource="{Binding BrokerCodes}" SelectedValuePath="Key" 
   DisplayMemberPath="Value" Text="{Binding SelectedBroker, Mode=TwoWay}"&gt;
  </code></pre>