The Picker view is a control for selecting a text item from a list of data.
Picker displays a short list of items, from which the user can select. However, a
Picker doesn't show any data when it's first displayed. Instead, the value of its
Title property is shown as a placeholder on the iOS and Android platforms:
Picker gains focus, its data is displayed and the user can select an item:
Following selection, the selected item is displayed by the
There are two techniques for populating a
Picker with data:
- Setting the
ItemsSourceproperty to the data to be displayed. This is the recommended technique, which was introduced in Xamarin.Forms 2.3.4. For more information, see Setting a Picker's ItemsSource Property.
- Adding the data to be displayed to the
Itemscollection. This technique was the original process for populating a
Pickerwith data. For more information, see Adding Data to a Picker's Items Collection.