【问题标题】:Windows Store App: How do I remove permissions tab from SettingsWindows 应用商店应用程序:如何从设置中删除权限选项卡
【发布时间】:2014-09-02 09:45:18
【问题描述】:

在我的应用中,我添加了这样的设置选项卡。

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

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

【问题讨论】:

    标签: xaml windows-8 windows-runtime windows-store-apps windows-8.1


    【解决方案1】:

    您无法从“设置”浮出控件中删除权限。您只能向其中添加自定义命令。

    【讨论】:

    • 我至少可以改变它的位置吗?我看到一些应用程序在权限之后有评分和评论选项卡。我怎么得到它?
    • 不,我不这么认为。
    • 只要清单中有用户可控的功能(例如地理位置、麦克风和网络摄像头),就会出现权限。权限是用户可以打开或关闭这些权限的地方。应用在商店中发布后,评分和评论就会出现。它不会出现在开发中的应用程序或不是从应用商店获取的旁加载应用程序中。
    猜你喜欢
    • 1970-01-01
    • 2017-07-28
    • 2013-12-14
    • 1970-01-01
    • 2021-08-12
    • 1970-01-01
    • 2017-06-23
    • 1970-01-01
    • 2019-02-09
    相关资源
    最近更新 更多