title: How could I implement this listbox with WPF/DataBinding?
body: <p>I have a working HTML form with a listbox from where the user can select from a list of standard bicycle tyre sizes. Each size maps internally to some numerical value, making the data source a Dictionary (map of key/value pairs).</p>
  
  <p>The javascript implementation is as follows, and I would like to have the same behaviour in WPF with databinding (defining the dictionary/enum inside my domain-model class):</p>
  
  <pre><code>&lt;select name="tiresize" id="tiresize"
      onchange="calcula();" style="width: 100px"&gt;
      &lt;option value="305"&gt;26 X 1.0 (559 mm)&lt;/option&gt;
      &lt;option value="311"&gt;26 x 1 (650C)&lt;/option&gt;
      &lt;option value="312"&gt;26 X 1.5&lt;/option&gt;
      &lt;option value="324"&gt;26 X 1.9&lt;/option&gt;
      &lt;option value="330"&gt;26 X 1 3/8 (590 mm)&lt;/option&gt;
      &lt;option value="340"&gt;27 X 1&lt;/option&gt;
      &lt;option value="342"&gt;27 X 1 1/8&lt;/option&gt;
      &lt;option value="343"&gt;27 X 1 1/4&lt;/option&gt;
      &lt;option value="345"&gt;27 X 1 3/8&lt;/option&gt;
      &lt;option value="330"&gt;26 X 2.125&lt;/option&gt;
      &lt;option value="332"&gt;700 x 21&lt;/option&gt;
      &lt;option value="334" selected="selected"&gt;700 x 23&lt;/option&gt;
      &lt;option value="335"&gt;700 x 25&lt;/option&gt;
      &lt;option value="336"&gt;700 x 28&lt;/option&gt;
      &lt;option value="342"&gt;700 x 32&lt;/option&gt;
      &lt;option value="345"&gt;700 x 35&lt;/option&gt;
      &lt;option value="347"&gt;700 x 38&lt;/option&gt;
      &lt;option value="354"&gt;700 x 44&lt;/option&gt;
      &lt;option value="365"&gt;700 x 50&lt;/option&gt;
      &lt;option value="370"&gt;700 x 56&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Thanks for any help!</p>