Articles in this section

How to loop items when wheeling in Xamarin.Forms SfPicker

In Xamarin.Forms SfPicker, we can loop the items continuously with the first and last item using the EnableLooping property.

The following steps explain how to enable items looping on wheeling in Xamarin.Forms SfPicker.

Step 1: Create a Xamarin.Forms SfPicker sample with all the required assemblies.

Step 2: Create symbol view model class and add the items that need to be displayed in Xamarin.Forms SfPicker.

Step 3: Initialize the Xamarin.Forms SfPicker in XAML page with the properties that need to be assigned and set the EnableLooping property to true.

XAML:

<picker:SfPicker PickerHeight="400" PickerWidth="300" 
                             HeaderText="Pick a color"
                             EnableLooping="True"
                             ItemsSource="{Binding ColorItems}">
</picker:SfPicker>

 

Output:

                 Enable looping in Xamarin.Forms Sf
Picker

 

You can find the sample in the following link: Sample

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied