title: Binding combobox to Integer array
body: <p>I have created an integer array in XAML as follows:</p>
  
  <pre><code> &lt;x:Array Type="{x:Type sys:Int16}" x:Key="intervals"&gt;
          &lt;sys:Int16&gt;1&lt;/sys:Int16&gt;
          &lt;sys:Int16&gt;2&lt;/sys:Int16&gt;
          &lt;sys:Int16&gt;3&lt;/sys:Int16&gt;
   &lt;/x:Array&gt;
  </code></pre>
  
  <p>I have an integer property in ViewModel named Interval.
  I am trying to bind this Interval property to the SelectedValue property of the ComboBox. However, the ComboBox does not show the selected value corresponding to the value of the Interval property. This is my ComboBox XAML code:</p>
  
  <pre><code> &lt;ComboBox SelectedValue="{Binding Path=Interval}" Height="25" ItemsSource="{StaticResource intervals}" HorizontalContentAlignment="Center" Margin="78,47,237,128" Name="comboBox1" VerticalContentAlignment="Center" Width="85" /&gt;
  </code></pre>