title: Add Tag to ComboBox Items From Model
body: <p>I have a <code>TypeOfContact</code> model that is made up of an ID, and Text. For example, one type would be <code>Telephone</code> and the ID would be <code>1</code>. Another type would be <code>Email</code> and the ID <code>2</code>. </p>
  
  <p>What I would like to do is add the text of the <code>TypeOfContact</code> as an item and the <code>ID</code> as a tag. I imagine it would look something like this, however this isn't working;</p>
  
  <pre><code>contactTypeComboBox.Items.Clear();
  foreach (TypeOfContact c in ContactTypes)
  {
      contactTypeComboBox.Items.Add(c.ContactTypeText);
  
      foreach (ComboBoxItem item in contactTypeComboBox.Items)
      {
          item.Tag = c.ContactTypeID;
      }
  }
  </code></pre>
  
  <p>The reason I want to do this is that when someone selects one of the <code>ComboBox</code> items I want to store the text and the ID. I could do this all through XAML but <code>ContactTypes</code> is  a list that is populated by the user, so I cannot hard code the values into the <code>ComboBox</code> as maintaining it and adding new <code>TypesOfContact</code> would be difficult.</p>