title: Event_Handler of the Done button of a picker
body: <p>I have a xamarin picker with a list of items and I want to remove the picker when the "done" button is pressed on iPhone and "Oke" button on android.<br>
  I have the code to remove the picker. But i don't know what event_Handler that might by.</p>
  
  <p>Code: </p>
  
  <pre><code>Picker picker = new Picker
      {
          Title = "What's in the slot?",
          VerticalOptions = LayoutOptions.CenterAndExpand
          //HorizontalOptions = LayoutOptions.Center 
  
      };
  
  private void Displaypickerview(int row, int column)
      {
          if (status == "filling board")
          {
              foreach (string text in pickerText)
              {
  
  
  picker.Items.Add(text);
          }
          foreach (string ore in oreLevels)
          {
              picker.Items.Add(ore);
          }
  
  
          picker.SelectedIndexChanged += (sender, args) =&gt;
          {
              if (picker.SelectedIndex == -1)
              {
  
              }
              else
              {
                  //change value of cell and button
                  Picker picker = (Picker)sender;
                  int index = picker.SelectedIndex;
  
                  if (index &lt; pickerText.Length)
                  {
                      board[row, column].Text = pickerText[index - 1];
                  }
                  else {
                      board[row, column].Text = oreLevels[index - 1 - pickerText.Length];
                  }
              }
          };
      }
      else if (status == "choosing item")
      {
  
      }
  
  }
  </code></pre>
  
  <p>Example of what it looks like on iPhone:</p>
  
  <p><a href="https://i.stack.imgur.com/K0Kt8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/K0Kt8.png" alt="Picker"></a></p>