Array

Windows Marketplace

Must Read

Consolidating Student Loans – Putting The Fun Back In College

Although many people look back on the time they spent in college as the best years of their lives,...

Spokane City Drive: Check Out The City!

Spokane City Drive consists of 26 sites for a total loop of 60 miles. The idea of driving through...

Canon 7D, Getting Started

Before you jump into making movies of your own, let’s go over some of the basic settings you’ll use...
Admin
test

Windows Phone 7 devices obtain applications through the Windows Marketplace hub. This is available from the Start screen, but you can
invoke the hub in your code in a variety of ways. You can open the hub to show specific types of content such as applications, music, or podcasts. You can also open the hub showing a filtered list of items from one of these categories using a search string, or you can just show a specific item by specifying its GUID content identifier. Finally, you can open the Reviews screen.

The following code examples show how you can use the Windows Marketplace task launchers in your application code.

C#
// Open the Windows Marketplace hub to show all applications.
MarketplaceHubTask marketPlace = new MarketplaceHubTask();
marketPlace.ContentType = MarketplaceContentType.Applications;
// Other options are MarketplaceContentType.Music
// and MarketplaceContentType.Podcasts.
marketPlace.Show();
// —————————————————–
// Open the Windows Marketplace hub to search for
// applications using a specified search string.
MarketplaceSearchTask marketSearch = new MarketplaceSearchTask();
marketSearch.ContentType = MarketplaceContentType.Applications;
marketSearch.SearchTerms = “Tailspin Surveys”;
marketSearch.Show();
// —————————————————–
// Open the Windows Marketplace hub with a specific
// application selected for download and installation.
MarketplaceDetailTask marketDetail = new MarketplaceDetailTask();
marketDetail.ContentType = MarketplaceContentType.Applications;
marketDetail.ContentIdentifier
= “{12345678-1234-1234-1234-123456789abc}”;
marketDetail.Show();
// —————————————————–
// Open the Windows Marketplace hub Review page.
MarketplaceReviewTask marketReview = new MarketplaceReviewTask();
marketReview.Show();

If you call the Show method of the MarketplaceDetailTask class without specifying a value for the ContentIdentifier property, the
task will show the Windows Marketplace page for the current application.

For more information about the tasks described in this section, and the other types of tasks available on Windows Phone 7 devices, see “Microsoft.Phone.Tasks Namespace” on MSDN (http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks(VS.92).aspx).

If you want to provide a link to a specific product on Windows Marketplace within a Web page or another application, you can do so
by specifying the appropriate product ID in the link. The following shows the format of a link to an application on Windows Marketplace.

http://social.zune.net/redirect?type=phoneApp&id=12345678-1234-1234-1234-123456789abc&source=MSDN

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest News

Underlight As Accent, For Power and The Main Light for Photography

Underlighting, in which fill or accent light comes from under the topic, is not widely used technique in the traditional Portraits,...

How To Fix Overexposure As A Creative Tool, The Complete Guide

As an creative tool, overexposure is sort of underrated. What I’m close to propose could be a deliberate and well thought out technique for...

7D Mark II is Canon’s best DSLR cameras without full-frame sensor.

The expected long-awaited Canon EOS 7D Mark II are shipping in November for $ 1,799 without a lens. With a higher price tag, you...

Low key photography and How to isolate your subject.

Low key photography doesn’t depend on underexposure to make its point; the key to low key is that the majority of tones, even correctly...

High Key Lighting Techniques for Professional Photographers

I’ve written many times about high key lighting techniques and how to achieve them. The term “high key” is a bit misleading. As I’ve...

More Articles Like This