Xamarin Forms Picker SelectedIndex 0 not showing

Viewed 581

I have a problem. I created the following picker:

<Picker ItemsSource="{Binding agentPickerNames}" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" SelectedIndexChanged="pickerAgent_SelectedIndexChanged" SelectedIndex="{Binding agentPickerIndex}" TextColor="White"/>

Now when I set the agentPickerIndex to 0, nothing gets shown in the picker, but when I set it to 1, I get the second line of the list. The problem is that I need the first line to be shown, but like I said: "The index 0 doesn't get shown by default!".

How can I fix this?

0 Answers
Related