title: How to get the value from my picker? Xamarin forms
body: <p>I have trouble to get out the selected <code>string</code> from my picker.
  This is my code:</p>
  
  <p>XAML: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Picker x:Name="thePicker" &gt;
      &lt;Picker.Items&gt;
          &lt;x:String&gt;info1&lt;/x:String&gt;
          &lt;x:String&gt;info2 &lt;/x:String&gt;
      &lt;/Picker.Items&gt;
  &lt;/Picker&gt;
  </code></pre>
  
  <p>CODE:</p>
  
  <pre class="lang-cs prettyprint-override"><code>thePicker.SelectedIndex = 1; //here is the problem i suppose, any idea what i should type?
  var ourPickedItem = thePicker.Items[thePicker.SelectedIndex];
  </code></pre>
  
  <p>Now I only get the value "info1" even if i select number 2. It has something to do with the <code>SelectedIndex</code> so it only picks the "1", but I am not sure how to write the code to make it work for the selected item.</p>