Awesome Open Source
Awesome Open Source


Select multiple rows in a listview with xamarin.forms.

By default the listview control lets you only select one row at a time. The MultiSelectListView control uses a modified ObservableCollection to mark which rows have been selected.

You can use any image to mark the selected row.

This is the component, works on iOS and Android.


Name Info
MultiSelectListView NuGet
Build status Build status

Build History

Build history

Platform Support

MultiSelectListView is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms

Setup / Usage

Basically the key is to use the MultiSelectObservableCollection instead of the conventional ObservableCollection.

public MultiSelectObservableCollection<User> Users { get; }

The "IsSelected" property notifies when an object has been selected.

in the Xaml file we must declare our control xmlns: lv = "clr-namespace: Xamarin.Forms.MultiSelectListView; assembly = Xamarin.Forms.MultiSelectListView", for example .

Then use the new MultiSelect.Enable property to enable the multiple selection in the listview.

we must use the SelectableCell that contains the property to inform the icon of the selection

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""
            xmlns:lv="clr-namespace:Xamarin.Forms.MultiSelectListView;assembly=Xamarin.Forms.MultiSelectListView" Padding="0,20,0,0">

        <ListView x:Name="lvwUsers" 
            ItemsSource="{Binding Users}"
                    <lv:SelectableCell x:Name="SelectableCell">

                            <Image Source="select.png" WidthRequest="30" HeightRequest="30"></Image>

                            <StackLayout Orientation="Vertical" Padding="20,0,20,0">
                                <Label Text="{Binding Name}" FontSize="17" ></Label>






SelectedItemBehavior to execute the command when the SelectedItem event occurs in ListView. Pass the item selected in ListView to Command.

Based on SelectedItemBehavior by Atsushi Nakamura (

If ClearSelected property is true, SelectedItem property of ListView is cleared after command execution. Default ClearSelected property value is true.

You can use the object of the selected line

        <lv:SelectedItemBehavior Command="{Binding DisplayNameCommand}"/>

Or specify the property you want to pass as a parameter

       <lv:SelectedItemBehavior Command="{Binding DisplayNameCommand}" PropertyName="Name"/

The complete example can be downloaded here:

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
C Sharp (276,750
Android (41,626
Ios (19,576
Xamarin (1,775
Xamarin Forms (1,253
Nuget (1,035
Control (970
Nuget Package (294
Xamarin Library (59
Xamarin Plugin (52
Related Projects