question

VasanthakumarM-3635 avatar image
0 Votes"
VasanthakumarM-3635 asked LeonLu-MSFT commented

How to select multiple contact list from Xamarin Forms

Hi Techie,

How to add the selected contact list from xamarin forms .

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered LeonLu-MSFT commented

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.



image.png (178.1 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LeonLu-MSFT I need to select particular phone contact list from xamarin forms and bind the contact name and mobile number in listview


I dont want to select all contact from my phone. How i can achieve this ?

0 Votes 0 ·

Now you can get the phone contact list, right?

0 Votes 0 ·

@LeonLu-MSFT Yes I can. but i can able to select only one contact list from my phone.


0 Votes 0 ·
Show more comments