title: How do I put a dictionary key pair into a picker in xamarin forms and retrieve the key value from the picker?
body: <p>I have a xaml file where I put the picker in and a code behind to populate it. The code used below:</p>
  
  <pre><code> Dictionary&lt;string, int&gt; list = new Dictionary&lt;string, int&gt;
              {
                  { "Aqua", 6},
                  { "Red", 1 },
                  { "Silver", 2 },
                  { "Teal", 3 },
                  { "White", 4 },
                  { "Yellow", 55 }
              };
              foreach (string item in list.Keys)
              {
                  ddlPurpose.Items.Add(item);
              }
  </code></pre>
  
  <p>I am trying to get the value 55 when I select yellow but the only thing I get is 5. I am using this to get the selected value</p>
  
  <pre><code>var val1 = ddlPurpose.SelectedItem.ToString();
          var val2 = ddlPurpose.SelectedIndex;
  </code></pre>
  
  <p>Is it even possible to get the key value? Have looked into the BindablePicker but that didn't seem to work at all. Any help on this is greatly appreciated. </p>