Learning Windows Phone7 development together (14th. 5market Task)

Source: Internet
Author: User

This Task can start the MarketPlace client program and display the application according to the settings. It can be said that MarketPlace is the top priority of WP7, because only the application can be installed through it, and the developer program can be delivered to the mobile phone.

 

1. MarketplaceHubTask: Start the client program and display the application according to the set category.

MarketplaceHubTask hub = new MarketplaceHubTask ();

Hub. ContentType = MarketplaceContentType. Applications;

Hub. Show ();

 

2. MarketplaceDetailTask: Start the client program and display the details of the specified application.

MarketplaceDetailTask detail = new MarketplaceDetailTask ();

Detail. ContentIdentifier = ""; // sets the identifier of the application to be displayed.

Detail. ContentType = MarketplaceContentType. Applications;

Detail. Show ();

 

3. MarketplaceReviewTask: Start the client program and display the preview page of the application.

MarketplaceReviewTask review = new MarketplaceReviewTask ();

Review. Show ();

 

4. MarketplaceSearchTask: Start the client program and search for the application according to the settings.

MarketplaceSearchTask marketsearch = new MarketplaceSearchTask ();

Marketsearch. ContentType = MarketplaceContentType. Applications;

Marketsearch. SearchTerms = "games ";

Marketsearch. Show ();

 

 

 

The above is the Task currently provided by MarketPlace, but it cannot run on the simulator, and an error will be reported. I don't know if the Market cannot be used in China? Or is MarketPlace not open yet? Or cannot it be run on the simulator? In addition, if you directly run the MarketPlace program on the simulator, an English prompt will be displayed. Do you have the same meaning as the error code?

 

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.