Add the following statement to your App.xaml.cs file
Window.Current.Activate();
SettingsPane.GetForCurrentView().CommandsRequested += SettingCharmManager_CommandsRequested;
private void SettingCharmManager_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
args.Request.ApplicationCommands.Add(new SettingsCommand("privacypolicy", "Privacy policy", OpenPrivacyPolicy));
}
private async void OpenPrivacyPolicy(IUICommand command)
{
Uri uri = new Uri("Enter your URL");
await Windows.System.Launcher.LaunchUriAsync(uri);
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Save application state and stop any background activity
deferral.Complete();
}