title: Converter for ComboBox in Silverlight 4
body: <p>I'm trying to select a ComboBox item to set the saved value from the database.</p>
  
  <p>In the database it's saved "I" or "D" and the converter returns "Direct" or "Indirect".</p>
  
  <p>The ComboBox has two ComboBoxItems with "Direct" and "Indirect" values.</p>
  
  <p>Here is the code I thought it would work:</p>
  
  <pre><code>&lt;ComboBox Name="cbMode" 
  SelectedValue="{Binding Context.mode, Converter={StaticResource ModeConverter}, Mode=TwoWay}" &gt;
         &lt;ComboBoxItem Content="Direct" /&gt;
         &lt;ComboBoxItem Content="Indirect" /&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>I know it is returning "Indirect" but it is not selected.</p>
  
  <p>When I try to change the selected item in the combo, it doesn't works because it can't convert from a ComboBoxItem to a String so I supouse this is the problem both ways.</p>
  
  <p>How should I try it? Must I make a SelectedIndex with a number converter??</p>
  
  <p>Thanks in advance.</p>