title: WPF - Bind to Dictionary Key Only
body: <p>I have a Listbox that is binded to a Dictionary.
  The dictionary contains a keyword and a string.</p>
  
  <pre><code> &lt;ListBox Style="{StaticResource ListBoxStyle}" ItemsSource="{Binding PatientImgResources, UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding SelectedKey}"  DisplayMemberPath="Key" /&gt;
  </code></pre>
  
  <p>PatientImgResources is the Dictionary
  SelectedKey is the Value I want,
  DisplayMemberPath just shows the keyword.</p>
  
  <p>I want this keyword as my value, unfortunately SelectedKey always contains the whole dictionary entry, keyword plus value.
  I tried SelectedValuePath="Key" . didn't work so far.</p>
  
  <p>Is it possible to bind to the key? I don't want to use stripped dictionaries.</p>