15

我创建了一个UserControl并在其中定义了一个依赖属性Label。当我在控件中引用它时,我得到错误The member "Label" is not recognised or is not accessible。我不明白的是,它在 Windows 手机上运行完美,但在将应用程序移植到 Windows 8 后,它给出了这个错误。对于 Windows 8 用户控件,有什么不同的事情要做吗?请帮忙。

4

1 回答 1

19

根据http://leventoz.wordpress.com/2012/03/11/moving-a-windows-phone-app-to-windows-8-a-case-study-part-2/

我刚刚关闭了我的 .xaml 文件,错误就消失了。它说 Visual Studio 的错误。但它没有得到证实。它仍然对我有用。

于 2012-11-22T04:29:17.167 回答