The fake errors in XAML - How to fix "The Attached Property 'ViewNodeId' was not found in type 'DependencyObject'." error

When developing Windows store app, sometimes a lot of "The attached property 'ViewNodeId' was not found in type 'DependencyObject'." errors in some Xaml files.

How to fix these errors?

The solution in a word: The above errors are not the root errors, you can look through all errors in "Error List" and fix other errors. Rebuild and the 'ViewNodeId' error will disappear. If not, try to reopen the solution.

以前时也遇到过类似的错误,也是如此解决的。但今天乍一看到如此多的'ViewNodeId'错误就有点乱,没有想到看Error List。再搜索时看到好多人也为此问题郁闷,更有一个哥们都头撞桌子了(After spending come time banging my head off the desk)。提醒一点,如果在解决了其它类型的错误时仍有这类问题,不妨关闭VS重新打开工程试一下。

撞桌子的哥们在这里,http://answers.flyppdevportal.com/categories/metro/csharpvb.aspx?ID=ff44b354-62e0-469d-b8c5-65bc805a48d0

 

 

你可能感兴趣的:(dependency)