1

在我的应用中,我添加了像这样的设置标签。Windows应用商店:如何从设置中删除权限标签

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(); 
    } 
} 

,我从App.xaml.cs

调用

AccountSettings.Initialise() 

它增加了该选项卡中的设置,但在默认情况下有一个权限选项卡已经添加,显示应用程序的权限。我如何删除此权限选项卡?

enter image description here

回答

2

你不能从设置弹出删除权限。您只能将自定义命令添加到它。

+0

我可以至少改变它的位置吗?我看到一些具有权限和评论选项卡的应用程序,它位于权限之后。我如何获得? – Subhankar 2014-09-04 04:24:56

+0

不,我不这么认为。 – Ram 2014-09-09 07:12:04

+1

当您的清单中有用户可控的功能时,权限就会出现,如地理位置,麦克风和网络摄像机。权限是用户可以打开或关闭这些权限的地方。一旦在应用商店中发布应用,费率和评论就会出现。它不会出现在未从商店获得的开发应用程序或侧装应用程序中。 – 2014-09-09 18:00:37

相关问题