Check for NULL in PhoneApplicationService.Current.State

Posted: February 27, 2012 in Windows Phone 7 & Mango

It is a good idea to add a Review My App button to your windows phone applications To do this, you can simply add the following to any button click event handler:

using Microsoft.Phone.Shell;
if (PhoneApplicationService.Current.State.ContainsKey("KeyName"))
{
  // Do something
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s