title: Setting multiple SelectedValue on WPF ComboBox
body: <p>Note: I'm using <strong><em>Mahapps.Metro</em></strong> if some parameters seem odd.</p>
  
  <p>So, I have a Model called <code>User</code>, which has a <code>StateId</code>.<br>
  Combobox is filled with <code>States</code>, so when a state is selected I put the <code>Id</code> of the selected state into <code>User.StateId</code> like this:     </p>
  
  <pre><code>&lt;ComboBox
      Grid.Column="0"
      Margin="0,5,0,0"
      mah:TextBoxHelper.ClearTextButton="True"
      mah:TextBoxHelper.Watermark="Select a State..."
      ItemsSource="{Binding States, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
      SelectedItem="{Binding SelectedState, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
      SelectedValue="{Binding User.StateId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
      SelectedValuePath="Id" /&gt;
  </code></pre>
  
  <p>And this works just fine. However, what if I wanted to put another parameter of the selected item into the <code>User</code> model? Let's say <code>User</code> also has a property called <code>StateName</code>, and when I select a new <code>State</code>, I pass both the <code>State.Id</code> and <code>State.Name</code> into the <code>User.StateId</code> and <code>User.StateName</code>?    </p>
  
  <p>Hopefully this wasn't too confusing. Thanks!</p>