How to select multiple contact list from Xamarin Forms

Vasanthakumar M 251 Reputation points
2021-03-23T13:05:32.063+00:00

Hi Techie,

How to add the selected contact list from xamarin forms .

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,146 Reputation points Microsoft Vendor
    2021-03-24T06:46:45.937+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    You can use CollectionView contain your contact list. CollectionView support the Multiple selection. Set SelectionMode to Multiple

       <CollectionView ItemsSource="{Binding Monkeys}"  
                       SelectionMode="Multiple"  
                       SelectionChanged="OnCollectionViewSelectionChanged">  
          
       </CollectionView>  
    

    Here is running screenshot.

    80948-image.png

    You can download this demo.

    https://github.com/xamarin/xamarin-forms-samples/tree/master/UserInterface/CollectionViewDemos

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.