Adding Privacy Policy in Windows Store apps

Add the following code in
OnLaunched(LaunchActivatedEventArgs e)
Method of App.xaml.cs

 

 

 

void App_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)

{

args.Request.ApplicationCommands.Add(new
SettingsCommand(“privacypolicy”, “Privacy Policy”, OpenPrivacyPolicy));

}


private
async
void OpenPrivacyPolicy(IUICommand command)

{


var uri = new
Uri(“Enter url of your privacy policy page”);


await
Launcher.LaunchUriAsync(uri);

}

Advertisements

One thought on “Adding Privacy Policy in Windows Store apps

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