Add contact to users contaclist in aWindows 8 Metro App

风格不统一 提交于 2019-12-30 18:57:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!