在我的应用中,我添加了一个像这样的设置标签。
internal static class AccountSettings
{
public static void Initialise()
{
SettingsPane settingsPane = SettingsPane.GetForCurrentView();
settingsPane.CommandsRequested += settingsPane_CommandsRequested;
}
private static void settingsPane_CommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
SettingsCommand accountSettings = new SettingsCommand("accSettings", "Account Settings", (uiCommand) =>
{
ShowSettingsPanel();
});
args.Request.ApplicationCommands.Add(accountSettings);
}
private static void ShowSettingsPanel()
{
var flyout = new SettingsFlyout();
flyout.Title = "Account Settings";
flyout.Content = new AccountSettingsPage();
flyout.Show();
}
}
我打电话
AccountSettings.Initialise()
来自App.xaml.cs
它在设置中添加了此选项卡,但默认情况下,已添加一个“权限”选项卡,其中显示了应用程序权限。如何删除此权限标签?
答案 0 :(得分:2)
您无法从“设置”弹出窗口中删除“权限”。您只能向其添加自定义命令。