O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing Trial Conditions

Providing a trial version of your app may help to improve its monetization. If someone has the opportunity to try out your app, the user may be more likely to purchase it (assuming that it is any good). A usual requirement for an app employing a trial version is to provide the user with a link to buy the app within the app itself. In the following demonstration, you see how to display an application bar button when an app is in trial mode.

The Microsoft.Phone.MarketPlace.LicenseInformation class contains a single method called IsTrial(), which indicates whether your app has been purchased. When a user downloads the trial version of your app from the marketplace, this method returns true. On all other occasions, such ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required