我有一个小的WPF应用程序,我没有完全本地化,但也没有硬编码资源。我知道WPF没有为此使用.resx文件,但我将资源字符串公开为视图控件绑定到的公共ViewModel属性:
using resx = MyApp.Properties.Resources;
...
public string InterferingProcessesText { get { return resx.InterferingProcessesText; } }
public string SettingsText { get { return resx.SettingsText; } }
public string