The email address chooser task launches the Windows Phone Contacts application and allows the user to select a contact. When the user completes the task, the
Completed event is raised, and the event handler receives an
EmailResult object that exposes a string containing the selected contact’s email address.
To query the user’s contact list, without requiring the user to select a contact, use the
Contacts class, which is described later in this chapter.
EmailAddressChooserTask should be defined as a field in your class, like so:
readonly EmailAddressChooserTask emailAddressChooserTask = new EmailAddressChooserTask ...