How to access MyProject.MySettings.Default.SomeSetting from xaml?
问题 I have defined a StringCollection in the Project Settings. I want to use the values in a ComboBox. Is there a way to access it xamly? I tried: <CollectionViewSource Source="{x:Static src:MySettings.Default.MyCollection}" /> <CollectionViewSource Source="{Binding Source={x:Static src:MySettings.Default.MyCollection}}" /> ****src** is the xmlns of the project* It says: "Type src:MySettings.Default was not found". The thing is that MySettings is a class that offers a Default property which is a