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 .

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.