win10 uwp 读取resw资源文件
2021-02-09 06:18
标签:pen contex view get dep windows resources class gpo ps:[my]是新建的my.resw资源文件 win10 uwp 读取resw资源文件 标签:pen contex view get dep windows resources class gpo 原文地址:https://www.cnblogs.com/lonelyxmas/p/8566169.html ResourceContext resourceContext = ResourceContext.GetForViewIndependentUse();
ResourceMap resourceMap = Windows.ApplicationModel.Resources.Core.ResourceManager.Current.MainResourceMap.GetSubtree("my");
// Here you load the resource you need
var resourceValue = resourceMap.GetValue("Sql4Test", resourceContext);
d.sql = resourceValue.ValueAsString;
文章标题:win10 uwp 读取resw资源文件
文章链接:http://soscw.com/index.php/essay/52975.html