I found this handy piece of code to determine if my app is in trial mode, with the added benefit of being able to test trial behavior in the emulator...
public bool IsTrial
{
get
{
#if DEBUG
return true;
#endif
return new LicenseInformation().IsTrial();
}
}
And that's great. I'll be able to adjust behavior accordingly.
But beyond that, I was hoping for some built-in API where I can actually get a dialog box with a button to buy the app. Ideally, the button should take the user directly to the app in the marketplace.