Answers for "how to check the picked item in a picker xamarin"

0

how to check the picked item in a picker xamarin

void OnPickerSelectedIndexChanged(object sender, EventArgs e)
{
  var picker = (Picker)sender;
  int selectedIndex = picker.SelectedIndex;

  if (selectedIndex != -1)
  {
    monkeyNameLabel.Text = picker.Items[selectedIndex];
  }
}
Posted by: Guest on November-18-2020

Code answers related to "how to check the picked item in a picker xamarin"

Browse Popular Code Answers by Language