添加联系人到用户contaclist在aWindows 8地铁应用 [英] Add contact to users contaclist in aWindows 8 Metro App
问题描述
我创建一个Windows 8的应用麦德龙用C#
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?
我知道你可以浏览与Windows.ApplicationModel.Contacts的联系人。供应商,但我不能看你怎么可以添加联系人。
I know you can browse the contacts with the Windows.ApplicationModel.Contacts.Provider, but I can't see how you can add a contact.
感谢您的帮助。
推荐答案
您可以通过联系人选择器合同这样做。使用 ContactPickerUI.AddContact 。这将弹出,用户可以用它来补充你的手它联系人的UI。没有造就了联系人选择器UI不能添加联系人。的 Contact示例给出添加联系人的一个例子。
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.
这篇关于添加联系人到用户contaclist在aWindows 8地铁应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!