The Xamarin Picker control is an item selector control that can be opened as a dialog. It allows users to pick an item from a list that can be modified with custom views. Its rich feature set includes functionalities like data binding, multiple-column layout, cascading selection, and headers and footers with custom views.
Easily get started with the Xamarin.Forms Picker using a few simple lines of XAML and C# code example as demonstrated below. Also explore our Xamarin Picker Example that shows you how to render and configure a Picker in Xamarin.Forms.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:syncfusion="clr-namespace:Syncfusion.SfPicker.XForms;assembly=Syncfusion.SfPicker.XForms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="GettingStarted.PickerSample">
<ContentPage.Content>
<syncfusion:SfPicker x:Name="picker" />
</ContentPage.Content>
</ContentPage>
using Syncfusion.SfPicker.XForms;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace GettingStarted
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class PickerSample : ContentPage
{
SfPicker picker;
public PickerSample()
{
InitializeComponent();
picker = new SfPicker();
this.Content = picker;
}
}
}
Data binding works out of the box for the most popular data sources. The Xamarin.Forms Picker control can automatically generate its columns based on the data source structure.
When the Xamarin Picker control populates a collection in a row, it will automatically be assumed to be a single-column picker.
The Xamarin.Forms Picker control can populate two or more collections in a row. Also, users can define a column’s data source based on selected items from another column for a particular use case. For example, you can define two columns, “Country” and “State”, where the “State” column’s data source is dependent on the “Country” column’s selected item, thus creating a country-state picker.
The Xamarin Picker can either be set directly to a layout as stand-alone or can show as a dialog on button click.
Looping support is used to automatically loop the list of items after reaching the last item multiple times.
You can provide the control a heading with a completely customizable font, text color, etc.
You can provide a separate heading for each column. Column headers’ font, text colors, etc. are completely customizable.
The Xamarin.Forms Picker control provides validation buttons (OK and Cancel) in the footer, which determines whether or not to perform the selection operation. Also, the footer can hold a custom view.
The Xamarin.Forms Picker control accepts a template for picker items that can change their appearance.
With simple customization, the Xamarin.Forms Picker control can be used as a date, time, or language picker.
Select a language with the language picker.
Pick a color with the color picker.
By adding the a.resx file to a .NET Standard project, you can localize Xamarin Picker across all platforms.
The Syncfusion Xamarin Picker supports the following features:
You can find our Xamarin Picker demo, which demonstrates how to render and configure Picker.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.