Friday, 10 April 2015

Opening the store to your app page (a follow on from the previous post)

Back again, with a quick post on opening your app store page. Very handy if you have followed the previous post regarding the Trial Experience.

  1. In the MainPage.xaml.cs (or any page where you wish to open the app store page) enter this code
    using Microsoft.Phone.Tasks;
  2. Then to open the app store page use this code
    MarketplaceDetailTask _marketPlaceDetailTask = new MarketplaceDetailTask();
    _marketPlaceDetailTask.Show();
  3. Simples…
Note: If you have not published your app to the Store then an error (code 805a0941) will be shown.  When the app is published to the Store, this code will work correct and detect your app unique ID and show the correct details page in the Store client app.

No comments:

Post a Comment