Introduced
Distinctive Windows Phone 7.5 (SDK 7.1) Selector
Addresschoosertask-Select the address of the contact person
Emailaddresschoosertask-Select the email of the contact person
Phonenumberchoosertask-Select a contact person's phone
Savecontacttask-How to save contact
Saveemailaddresstask-Save your e-mail address
Savephonenumbertask-Save Phone number
Saveringtonetask-Save Ringtones
Photochoosertask-Select photos from Gallery
Cameracapturetask-Camera photo
Gameinvitetask-Games Invitation (inviting others to join my game session)
Example
1, Addresschoosertask's Demo
AddressChooserTask.xaml.cs
* * Addresschoosertask-Select the address of the contact * Completed-Events performed after the selected address * Show ()-Display contact list * * Taskresult-User Selection After the result * OK-Successful * Cancel-Cancel * None-Failure * * addressresult-completed event parameter * Displayn
Ame-Contact Name * address-contact addresses/using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Net;
Using System.Windows;
Using System.Windows.Controls;
Using System.Windows.Documents;
Using System.Windows.Input;
Using System.Windows.Media;
Using System.Windows.Media.Animation;
Using System.Windows.Shapes;
Using Microsoft.Phone.Controls;
Using Microsoft.Phone.Tasks; namespace Demo.choosers {public partial class Addresschoosertaskdemo:phoneapplicationpage {private
Addresschoosertask _addresschoosertask;
Public Addresschoosertaskdemo () {InitializeComponent (); } private void Btndemo_click (object sender, RoutedeventargS e) {_addresschoosertask = new addresschoosertask ();
_addresschoosertask.completed + = new eventhandler<addressresult> (_addresschoosertask_completed);
try {_addresschoosertask.show (); The catch (Exception ex) {MessageBox.Show (ex).
ToString ()); } void _addresschoosertask_completed (object sender, Addressresult e) {if (e) .
Taskresult = = Taskresult.ok) {MessageBox.Show ("" "+ E.displayname +") address is: "+ e.address); }
}
}
}