WP7:价格$ P $联系人pdefined细节 [英] WP7: Save a contact with predefined details
问题描述
我做的一款Windows Phone 7项目,并检索基于他通过一个web服务电话号码的个人详细信息的人。
I am doing a Windows Phone 7 project, and is retrieving personal details for a person based on his phone number via a webservice.
我想允许用户保存这些数据作为一个接触;理想情况下,我想所有的字段显示在编辑联系人对话框pre填充的基础上检索到的数据。
I'd like to allow the user to save this data as a contact; Ideally I would like to show the Edit Contact dialog with all the fields pre-filled based on the data I retrieve.
我知道我能做到这一点:
I know I can do this:
var saveTask = new SavePhoneNumberTask();
saveTask.PhoneNumber = phone;
saveTask.Show();
但我需要美元的任务也p $ P-设置的所有其他属性。有没有办法做到这一点在Windows Phone 7的?
But I need to pre-set all the other properties for the task also. Is there any way to do this in Windows Phone 7 ?
推荐答案
在WP7 SDK允许应用程序保存任何一个电话号码或电子邮件地址到新的或现有的联系人(与<一个href="http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.saveemailaddresstask%28v=VS.92%29.aspx"相对=nofollow> SavePhoneNumberTask 和<一href="http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.saveemailaddresstask%28v=VS.92%29.aspx"相对=nofollow> SaveEmailAddressTask )。目前还没有办法设置其他联系信息。
The WP7 SDK allows an application to save either a phone number or an email address to a new or existing contact (with SavePhoneNumberTask and SaveEmailAddressTask). There is currently no way to set other contact information.
这篇关于WP7:价格$ P $联系人pdefined细节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!