1

In my app, I have added a settings tab like this.

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

and I am calling

 AccountSettings.Initialise() 

from App.xaml.cs

It adds this tab in the setting but by default there is one Permissions tab already added which shows the app permissions. How can I remove this permissions tab?

enter image description here

Filip Skakun
  • 31,624
  • 6
  • 74
  • 100
Subhankar
  • 487
  • 8
  • 25

1 Answers1

2

You cannot remove Permission from Settings flyout. You can only add your custom commands to it.

Ram
  • 63
  • 5
  • Can I atleast change the position of it? I see some app having Rate and Review tab which comes after Permissions. How do I get that? – Subhankar Sep 04 '14 at 04:24
  • No, i don't think so. – Ram Sep 09 '14 at 07:12
  • 1
    Permissions appears any time you have capabilities in your manifest that are user-controllable, like geolocation, microphone, and webcam. Permissions is where the user can turn those on or off. Rate & Review will appear once an app is published in the Store. It won't appear for apps in development or side-loaded apps that weren't acquired from the Store. – Kraig Brockschmidt - MSFT Sep 09 '14 at 18:00