The picker control allows users to pick an item from a list of items that can be customized with custom views. This control can also be opened as a dialog. Its rich feature set includes functionalities like data binding, multiple-column layout, cascading selection, header and footer with custom view.
Data binding works out-of-the-box for the most popular data sources. The picker control can automatically generate its columns based on data source structure.
When picker populates one collections in a row it will automatically assumed as a single column Picker.
Picker can populate Two or more collections in a row. Also, user can define a column’s data source based on selected items from another column for the use case like to define two columns, “Country” and “State,” where the “State” column’s data source is dependent on the “Country” column’s selected item.
Picker can either set directly to a layout as standalone or can be opened as a dialog.
Picker allows to define title or custom view as Header which represent the usage of the picker. The header can be customized completely.
You can provide a separate heading to each column. Column header is completely customizable such as different fonts, text color, etc.,
Picker provides validation buttons (OK and Cancel) in footer part, these buttons helpful to determine whether to perform the selection operation or not. Also, footer can accept to hold custom view.
Footer with validation buttons (OK and Cancel)
Footer with custom view.
The control accepts a template for picker items that helps us to change the look of the item used in it.
Since Header and Footer accept to hold any view, we can change the header region for our aspect. Apart from this we can change Font size, Font family and color(Background/Text).