I’ve a project with styles were defined in a xaml file under a Themes folder. Hence, I couldn’t add resource in another xaml file which is under View folder. It shows “The file 'Controls\MyContentPaneDictionary.xaml‘ is not part of the project or it’s ‘Build Action‘ property is not set to Resources.
How could I solve this problem ? The answers would be greatly appreciated.
Set the file’s Build Action to Resource and do a full rebuild(to make sure visual studio notices the change to the resources) or you could even delete the build files and then build the file again.