driis
driis

Reputation: 164291

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 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 ?

Upvotes: 1

Views: 443

Answers (1)

Andréas Saudemont
Andréas Saudemont

Reputation: 1353

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.

Upvotes: 1

Related Questions