【问题标题】:I keep receiving a Object Reference not set to an instance of an object error on compilation after installing Template10 build 1.1.7在安装 Template10 build 1.1.7 后,我不断收到未设置为对象实例的对象引用错误
【发布时间】:2016-03-02 08:53:42
【问题描述】:

每次我尝试编译我的应用程序(Petrolhead - https://github.com/SupernovaApps/Petrolhead 的源代码),升级到 Template10 1.1.7 后,我都会收到以下错误: 1>C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(350,5): Xaml Internal Error error WMC9999: Object reference not set到一个对象的实例。

有谁知道这意味着什么,我能做些什么?

(如果有人可以下载我的应用程序的源代码并查看他们是否收到相同的错误,我将不胜感激。我目前正在测试 UWP 客户端)。

【问题讨论】:

    标签: xaml msbuild winrt-xaml win-universal-app template10


    【解决方案1】:

    我解决了自己的问题。我试图为 GridView 中的项目创建一个 Tapped 事件,而不是使用 UWP 似乎不太高兴的 ItemClick。

    【讨论】:

    • ItemClicked 在您单击项目时触发。点击 GridView 时,Tapped 触发。
    • 只要有错位就会“抽搐”!在我的情况下,我不小心在 Click 属性(而不是 Command)中有一个 {Binding},我花了几个小时禁用我的所有 XAML,直到我找到它!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-09
    • 2012-08-31
    • 2011-11-21
    • 2012-10-01
    • 1970-01-01
    相关资源
    最近更新 更多