我已按照本教程进行本地化:
在runetime,一切正常。但在Visual Studio中,我总是得到错误:
Loc is not supported in a Windows Presentation Foundation (WPF) project.
ResourceManager is not supported in a Windows Presentation Foundation (WPF) project.
因此,我无法在Visual Studio中看到UI。本教程使用WPF扩展:
您不必在XAML文件的开头添加任何命名空间引用(如xmlns:loc =" ..."),因为扩展在启动时注册到默认的Microsoft命名空间(我借用其他解决方案之一的另一个想法。)
有人可以帮助我解决此问题,因为我希望在“设计时间”看到我的用户界面。
提前致谢。