错误报告的 部分 描述:
B:: The app has declared access tonetwork capabilities and no privacy statement was provided
in the Description page. C:: The app has declaredaccess to network capabilities and no privacy
statement was provided in the Windows Settings Charm.
具体来说就是: 你的应用不符合要求 4.1。
Windows 8 应用认证要求 (Windows) : http://msdn.microsoft.com/zh-CN/library/windows/apps/hh694083.aspx
//设置 API 类
namespace Windows.UI.ApplicationSettings
{
// 启动应用程序控制“设置魅力”窗格的静态类。在用户打开窗体或以编程方式打开窗体时,应用程序可以添加或移除命令,可以接收通知。
public sealed class SettingsPane
{
public static SettingsEdgeLocation Edge { get; }
// 在用户打开设置窗格时发生。侦听此事件使该应用程序初始化设置命令和暂停其自己的 UI,直到用户关闭窗格。
public event TypedEventHandler CommandsRequested;
// 获取与当前应用程序视图相关联的 SettingsPane 对象。
// 返回结果: 设置窗格。
public static SettingsPane GetForCurrentView();
namespace ApplicationSettings
{
///
/// An empty page that can be used on its own or navigated to within a Frame.
///
public sealed partial class SettingsFlyout : SDKTemplate.Common.LayoutAwarePage
{
// The guidelines recommend using 100px offset for the content animation.
const int ContentAnimationOffset = 100;
// A pointer back to the main page. This is needed if you want to call methods in MainPage such
// as NotifyUser()
MainPage rootPage = MainPage.Current;
public SettingsFlyout()
{
this.InitializeComponent();
FlyoutContent.Transitions = new TransitionCollection();
FlyoutContent.Transitions.Add(new EntranceThemeTransition()
{
FromHorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Right) ? ContentAnimationOffset : (ContentAnimationOffset * -1)
});
}
///
/// This is the click handler for the back button on the Flyout.
///
///
///
private void MySettingsBackClicked(object sender, RoutedEventArgs e)
{
// First close our Flyout.
Popup parent = this.Parent as Popup;
if (parent != null)
{
parent.IsOpen = false;
}
// If the app is not snapped, then the back button shows the Settings pane again.
if (Windows.UI.ViewManagement.ApplicationView.Value != Windows.UI.ViewManagement.ApplicationViewState.Snapped)
{
SettingsPane.Show();
}
}
///
/// This is the a common click handler for the buttons on the Flyout. You would replace this with your own handler
/// if you have a button or buttons on this page.
///
///
///
void FlyoutButton_Click(object sender, RoutedEventArgs e)
{
Button b = sender as Button;
if (b != null)
{
rootPage.NotifyUser("You selected the " + b.Content + " button", NotifyType.StatusMessage);
}
}
}
}