是否有一个现有的LCID - > “国家国旗”在点网框架的功能?

问题描述:

有谁知道的一种方式来获得从点网框架某种基于一个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.

我已经看了Cul​​tureInfo的和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:

http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo%28VS.71%29.aspx

这会帮助你找到一些标志在互联网上的图标,然后使用该表的映射。

That will help you find some flags icons on the internet and then map them using that table.

我建议你刚才命名所有图标的LCID或文化的名称,然后查找功能只是加载[LCID] .ICO或[LCID]从磁盘或资源嵌入在文件中的.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.