Adding App Rating Functionality in App Using Review Task


This article explains the Marketplace Review Task. This task helps to launch the Rating Screen in the marketplace for our app. It can be used for adding the rating mechanism to an APP.

Marketplace Review Task

This is a kind of launcher provided by Windows Phone to launch the rating screen for an app on the Windows Phone marketplace. This task expects no parameters to be set and works on the basis of app id. 

Before using this task we need to include the following namespace:

using Microsoft.Phone.Tasks;

Use the following procedure to use it:

  1. Create a new instance of a marketplace review task.

    MarketplaceReviewTask mrt = new MarketplaceReviewTask()
  2. Next launch it.



The following code demonstrates how to add a rating mechanism to your app. For this rating task to work your app needs to be published on the marketplace first. Since this is just a demo and it's not published on the marketplace, to run this project you need to change the "APP ID" to the one for your published app.

Use the following procedure to change the app id:

  1. Open the "WMAppManifest.xml" file.
  2. Click on the Packaging tab.
  3. Now copy your existing Product id to some secure place.
  4. Replace this product id with the published app id.
  5. Save all the changes.
  6. Rebuild the project and debug it.
  7. After debugging and before releasing, don't forget to replace the app id with the one you saved earlier.












    FontFamily="{StaticResource PhoneFontFamilyNormal}"

    FontSize="{StaticResource PhoneFontSizeNormal}"

    Foreground="{StaticResource PhoneForegroundBrush}"

    SupportedOrientations="Portrait" Orientation="Portrait"



    <!--LayoutRoot is the root grid where all page content is placed-->

    <Grid x:Name="LayoutRoot" Background="Transparent">


            <RowDefinition Height="Auto"/>

            <RowDefinition Height="*"/>



        <!--TitlePanel contains the name of the application and page title-->

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">

            <TextBlock Text="Demo" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>

            <TextBlock  Text="Demo" Margin="9,-7,0,0" FontSize="40" />



        <!--ContentPanel - place additional content here-->

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">

            <StackPanel Orientation="Vertical">

                <TextBlock Text="Rate this App" FontSize="45" Height="106"></TextBlock>

                <TextBlock Text="Click Below Button to Rate This App" FontSize="25" Height="106"></TextBlock>

                <Button Name="sendBtn" Click="sendBtn_Click"  Content="Rate App" HorizontalAlignment="Left" Width="186" Height="80" VerticalAlignment="Bottom" Margin="132,0,0,0"/>





C# Code Behind

using Microsoft.Phone.Controls;

using System;

using System.Collections.Generic;

using System.Linq;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Diagnostics;

using Microsoft.Phone.Tasks;

using System.Windows.Media;


namespace Demo


    public partial class MainPage : PhoneApplicationPage


        // Constructor

        public MainPage()





        private void sendBtn_Click(object sender, RoutedEventArgs e)


            /* Step 1 */

            Microsoft.Phone.Tasks.MarketplaceReviewTask mrt = new MarketplaceReviewTask() ;

            /* Step 2 */


            /* Step 3 */






The Show method is used to launch the task.



Similar Articles