Windows Phone 7 starter and selector (learning notes)

Source: Internet
Author: User
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.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.