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?