在WMAppManifest.xml中的調(diào)用方式Title="@AppResLib.dll,-100" <Title>@AppResLib.dll,-200</Title>,100和200分別對(duì)應(yīng)了App Title和Tile。
2、在程序內(nèi)的國(guó)際化,在開(kāi)發(fā)工程中,新建一個(gè)Resource目錄,下面新建AppResource.resx資源,針對(duì)不同語(yǔ)言可以建立不同的資源AppResource.en-US.resx等。在程序中直接使用以下函數(shù)就可以調(diào)用已經(jīng)配置好的國(guó)際化資源:
private static readonly ResourceManager ResourceManager = new ResourceManager("XXXX.Resource.AppResource", Assembly.GetExecutingAssembly());
public static string GetString(string keyName)
{
return Utilities.ResourceManager.GetString(keyName);
}
public static string GetString(string keyName)
{
return Utilities.ResourceManager.GetString(keyName);
}
3、對(duì)于需要支持的語(yǔ)言,還要修改csproj文件,修改如下:
<SilverlightApplication>true</SilverlightApplication>
<SupportedCultures>zh-CN;en-US;
</SupportedCultures>
<XapOutputs>true</XapOutputs>
<SupportedCultures>zh-CN;en-US;
</SupportedCultures>
<XapOutputs>true</XapOutputs>
---------------------------------------------------------
專(zhuān)注移動(dòng)開(kāi)發(fā)
Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian