xamarin picker itemsou code example
Example 1: xamarin picker item
<Picker Title="Pick the artistic filter" x:Name="picker">
<Picker.Items>
<x:String>udnie</x:String>
<x:String>wave</x:String>
<x:String>la_muse</x:String>
<x:String>rain_princess</x:String>
</Picker.Items>
</Picker>
Example 2: 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];
}
}