title: How to populate a ComboBox in XAML
body: <p>I'm trying to populate a <code>ComboBox</code> with a pair of <strong>String, Value</strong>. I did it in code behind like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>listCombos = new List&lt;ComboBoxItem&gt;();
  item = new ComboBoxItem { Text = Cultures.Resources.Off, Value = "Off" };
  listCombos.Add(item);
  item = new ComboBoxItem { Text = Cultures.Resources.Low, Value = "Low" };
  listCombos.Add(item);
  item = new ComboBoxItem { Text = Cultures.Resources.Medium, Value = "Medium" };
  listCombos.Add(item);
  item = new ComboBoxItem { Text = Cultures.Resources.High, Value = "High" };
  listCombos.Add(item);
  combo.ItemsSource = listCombos;
  </code></pre>
  
  <p>ComboBoxItem:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class ComboBoxItem
  {
      public string Text { get; set; }
      public object Value { get; set; }
  
      public override string ToString()
      {
          return Text;
      }
  }
  </code></pre>
  
  <p>As you can see, I'm inserting the <code>Text</code> value using my <code>ResourceDictionary</code>. But if I do it in this way, when I change language at runtime, the <code>ComboBox</code> content doesn't.</p>
  
  <p>So I wanted to try to fill my <code>ComboBox</code> at the design (at XAML).</p>
  
  <p>So my question is: how can I fill my <code>ComboBox</code> with a pair <strong>Text, Value</strong> like above?</p>