【发布时间】: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