开发者

WP7: Save a contact with predefined details

I am doing a Windows Phone 7 project, and is retrieving personal details for a person based on his phone number via a webservice.

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 开发者_StackOverflow中文版know I can do this:

        var saveTask = new SavePhoneNumberTask();
        saveTask.PhoneNumber = phone;            
        saveTask.Show();

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 ?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜