【发布时间】:2013-01-04 03:45:37
【问题描述】:
我正在尝试按照本教程进行用户设置:
http://blogs.msdn.com/b/patrickdanino/archive/2008/07/23/user-settings-in-wpf.aspx
我定义了一个名称为 Selected、type int、scope user 的设置。在 App.xaml 中,我有:
<Application.Resources>
<properties:Selected x:Key="Selected"/>
</Application.Resources>
但是我收到了这个错误信息:
“命名空间前缀“properties”未定义”
我不知道为什么...欢迎任何建议。
PS。如果你能看看我的另一个问题,那就太好了! :)
Cannot find source for binding
编辑: 解决了!
【问题讨论】:
-
App.xaml 的其余部分是什么样的?该错误表明 Application 标记中没有像 xmlns:properties="clr-namespace:SampleApp.Properties" 这样的命名空间声明。