I was trying to follow this tutorial on user settings:
http://blogs.msdn.com/b/patrickdanino/archive/2008/07/23/user-settings-in-wpf.aspx
I defined a setting whose name was Selected, type int, scope user. In App.xaml, I had:
<Application.Resources>
<properties:Selected x:Key="Selected"/>
</Application.Resources>
However I got this error message:
“The namespace prefix “properties” is not defined”
I couldn’t figure out why…Any suggestions are welcome.
PS. If you could take a look at another question of mine, it would be great! 🙂
Cannot find source for binding
Edit:
Solved!
You need to make sure the properties namespace is defined somewhere, as shown in the example you linked:
Notice the line:
xmlns:properties="clr-namespace:SampleApp.Properties"You may need to recompile before this error goes away.