Allowing the User to Review Your App Using the MarketplaceReviewTask

,

The Marketplace review task is used to launch the built-in Marketplace application. A review page allows the user to enter a text review for the current app and give it a rating out of five. The user can also see the average rating of the application by other users.

The MarketplaceReviewTask has no settable properties and is launched like so:

MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show();

Sample Overview

Example code for the MarketplaceReviewTask can be found in the MarketplaceViewModel in the downloadable sample code. The MarketPlaceView uses a button to execute an ICommand called ReviewCommand in the viewmodel.

The reviewCommand is instantiated in the MarketplaceViewModel constructor. When executed, the reviewCommand creates a new MarketplaceReviewTask and calls its Show method, like so:

public MarketplaceViewModel()
{
    reviewCommand = new DelegateCommand(
        delegate
            {
                MarketplaceReviewTask task = new MarketplaceReviewTask();
                task.Show();
            });
// ...
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.112.210