问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/11451966/add-contact-to-users-contaclist-in-awindows-8-metro-app