It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center。
已关闭8年。
我的Windows Store App认证失败,测试人员给我的说明是:
有人可以给我确切的代码来解决这个问题。
显然,在此示例中,我们将隐私策略链接到外部页面,但是您可以根据需要修改代码以在应用程序中打开单独的页面。
已关闭8年。
我的Windows Store App认证失败,测试人员给我的说明是:
有人可以给我确切的代码来解决这个问题。
最佳答案
在基本页面(或单个页面(如果只希望在一个页面中))中,可以定义如下设置:
SettingsPane.GetForCurrentView().CommandsRequested += SettingsCommandsRequested;
private void SettingsCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
//use "new Guid()" instead of string "privacy" if you're experiencing an exception
var privacyStatement = new SettingsCommand("privacy", "Privacy Statement",
async x => await Launcher.LaunchUriAsync(new Uri("http://some-url.com")));
args.Request.ApplicationCommands.Clear();
args.Request.ApplicationCommands.Add(privacyStatement);
}
显然,在此示例中,我们将隐私策略链接到外部页面,但是您可以根据需要修改代码以在应用程序中打开单独的页面。
关于c# - 隐私声明Windows 8 super 按钮设置,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13055381/
10-13 08:00