Saving a Contact to the Phone’s Contact List Using the SaveContactTask
The save contact task is used to enable a user to save a contact to the phone’s contact list. The SaveContactTask
class contains 26 string properties such as FirstName
, Company
, and Website
, which allow you to pass detailed information to the built-in Contacts app.
When the user finishes saving the contact, cancels out of the task, or an error occurs, the task’s Completed
event is raised.
The sample for the SaveContactTask
consists of the SaveContactTaskView
page and the SaveContactTaskViewModel
class.
The SaveContactTask
should be defined as a field in your class, like so:
readonly SaveContactTask saveContactTask = new SaveContactTask();
Subscribe to the SaveContactTask.Completed ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.