有谁知道的一种方式来获得从点网框架某种基于一个LCID,文化或地区?
Does anyone know of a way to get an icon or image of some sort from the dot net framework based on an LCID, Culture or Region?
很显然,我可以写一个case语句,这和提供我自己的形象,但如果别人已经做了硬码(并保持适当的图像),那么我宁愿使用现有的code
Obviously, I could write a case statement for this and provide my own images, but if someone else has done the hard yards (and is maintaining appropriate images) then I'd rather use existing code.
我已经看了CultureInfo的和RegionInfo类占据着信息,如货币符号,显示名称,缩略语等,但我找不到任何'标志'。
I've looked at the CultureInfo and RegionInfo classes which hold information like currency symbols, Display Names, abbreviations etc. but I can't find any 'flags'.
这是过多的政治烫手山芋?
Is this too much of a political hot potato?
推荐答案
框架不会有图像/图标库。
Framework won't have image/icon libraries.
这里的文化与LCIDs名单:
Here's the list of Cultures and LCIDs:
的https://p.xsw88.cn/allimgs/daicuo/20230906/3403.png。
I would suggest you just rename all the icons to the LCID or culture name and then lookup function just loads [lcid].ico or [lcid].png from disk or resource embedded in the file.
相关推荐
最新文章