参考:https://stackoverflow.com/questions/19586401/error-in-binding-resource-string-with-a-view-in-wpf
选中资源文件,右键->属性,“自定义工具”输入PublicResXFileCodeGenerator,重新编译。
XAML绑定到资源文件字符串时失败
原文:https://www.cnblogs.com/144823836yj/p/9205148.html