Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add contact to users contaclist in aWindows 8 Metro App

I'm creating a Windows 8 Metro App with c#

In the app you can search persons in a phonebook. Is there a possibility to add a found contact to the users contact-list?

I know you can browse the contacts with the Windows.ApplicationModel.Contacts.Provider, but I can't see how you can add a contact.

thanks for help

like image 285
SwissPrime Avatar asked Jul 12 '12 12:07

SwissPrime


1 Answers

You can do so through the Contact Picker Contract. Use ContactPickerUI.AddContact. This will bring up a UI that the user can use to add the Contact you hand it. You cannot add a Contact without bringing up a Contact Picker UI. The Contact Sample gives an example of adding a contact.

like image 95
JP Alioto Avatar answered Sep 26 '22 00:09

JP Alioto