Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 vb.net 访问在 WPF 窗口的 .resx 文件中找到的值,我的意思是不是来自 xaml。
抱歉,我找到了答案
答案是
Dim rm As System.Resources.ResourceManager = New System.Resources.ResourceManager("your class name", Reflection.Assembly.GetExecutingAssembly())
然后,您可以按名称获取资源:
rm.GetString("resource value name")