Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

2
Votes

Hi,


I know you can add items to SfPicker in XAML using:


     <syncPicker:SfPicker   x:Name="Picker"  HeaderText="Select Item" PickerMode="Default" BackgroundColor="Transparent" HeaderBackgroundColor="DodgerBlue" SelectedItemTextColor="#003768"
                    UnSelectedItemTextColor="Gray" SelectedItemFontSize="38" UnSelectedItemFontSize="35"  ShowHeader="true" >
        <syncPicker:SfPicker.ItemsSource>
            <itemCollection:List x:TypeArguments="x:String">
                    <x:String>Male</x:String>
                    <x:String>Female</x:String>
                    <x:String>Feedback</x:String>
                    <x:String>Contacts</x:String>
                    <x:String>Comment</x:String>
                    <x:String>General</x:String>
                </itemCollection:List>
            </syncPicker:SfPicker.ItemsSource>
           </syncPicker:SfPicker>

but it will also please great if you add options to add Value and Image as optional, for example:

<Item Text="Male" Value="M" Image="male.png" />
<Item Text="Feale" Value="F" Image="female.png" />

Thanks,