Starter
1. Start a built-in program for users
2. No data will be returned to the called program.
Selector
1. Start a built-in program for users
2. Return some data to the called Program
3. When the user completes the operation, the caller will be re-activated and receive the returned data.
(Note: The user may cancel the operation and return NULL)
Example: photochoosertask (image selector)
Built-in starters
1. emailcomposetask
2. marketplacedetailtask
3. marketplacehubtask
4. marketplacereviewtask
5. marketplacesearchtask
6. mediaplayerlauncher (starts the Media Player)
7. phonecalltask (call)
View code
Phonecalltask = new phonecalltask ();
Phonecalltask. displayname = "eye-catching monster ";
Phonecalltask. phonenumber = "13012341234 ";
Phonecalltask. Show ();
8. searchtask (Search)
9. smscomposetask (SMS)
10. webbrowsertask (browser)
View code
Searchtask = new searchtask ();
Searchtask. searchquery = "eye-catching ";
Searchtask. Show ();
Built-in Selector
1. cameracapturetask (camera, photo taken back)
2. emailaddresschoosertask (obtain eamil from the contact)
3. phonenumberchoosertask (obtain the phone number from the contact information)
4. photochoosertask (read photo information from the Image Library)
5. saveeamiladdresstask (save email to contact, return true, false)
6. savephonenumbertask (Save the phone number to the contact, return true, false)
Http://msdn.microsoft.com/en-us/library/ff769543 (V = vs.92). aspx
Use Selector
1. How to: usechoosers for Windows Phone
2. Define a chooser field in the phoneapplicationpage class
3. Generate the chooser instance in the phoneapplicationpage conmpleter event handler.
4. Implement the completed event processing function
5. Call the show () method to start the selector.