【发布时间】:2012-11-09 13:16:18
【问题描述】:
我创建了一个UserControl,并在其中定义了一个依赖属性Label。当我在控件中引用它时,我收到错误The member "Label" is not recognised or is not accessible。我不明白的是它在 Windows 手机上运行完美,但在将应用程序移植到 Windows 8 后,它会出现此错误。对于 Windows 8 用户控件,有什么不同的事情要做吗?请帮忙。
【问题讨论】:
-
你能把你的 xaml 添加到这个问题中吗?
-
需要查看代码 sn-p 来提供帮助。为 Windows 应用商店应用正确完成的依赖属性应该可以正常工作。
标签: user-controls windows-8 microsoft-metro dependency-properties