【问题标题】:Error - "Pivot" does not exist in the namespace - Windows phone 8.1错误 - 命名空间中不存在“Pivot” - Windows phone 8.1
【发布时间】:2015-06-03 11:36:23
【问题描述】:

我对 Windows 手机开发非常陌生。最近我正在做一个项目。我有一些使用枢轴的代码。但它显示了

错误为:

名称空间“http://schemas.microsoft.com/winfx/2006/xaml/presentation”中不存在名称“Pivot”

如何解决?

【问题讨论】:

  • 您正在开发Silverlight - windows phone 8.1winrt-windows phone 8.1 应用程序..?在此处发布一些代码,以便于检测错误。

标签: c# windows-phone-8 windows-phone-8.1


【解决方案1】:

您是否尝试过像这样添加枢轴?

<Controls:Pivot>
</Controls:Pivot>

【讨论】:

  • 其实我以前调试的时候是报错,但是直接运行就可以了。
【解决方案2】:

如果您在开发 Windows UWP 应用 8.1 版时遇到此错误 - 请记住:Windows 8.1 没有 Pivot 控件。只有 Windows Phone 8.1 具有 Pivot 控件。因此,当 VS 构建 UWP 应用的 Windows 8.1 部分时会出现错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-07-25
    • 1970-01-01
    • 1970-01-01
    • 2019-05-16
    • 2014-05-09
    • 1970-01-01
    • 2014-08-23
    相关资源
    最近更新 更多