在WMAppManifest.xml中的調(diào)用方式Title="@AppResLib.dll,-100" <Title>@AppResLib.dll,-200</Title>,100和200分別對應(yīng)了App Title和Tile。
2、在程序內(nèi)的國際化,在開發(fā)工程中,新建一個Resource目錄,下面新建AppResource.resx資源,針對不同語言可以建立不同的資源AppResource.en-US.resx等。在程序中直接使用以下函數(shù)就可以調(diào)用已經(jīng)配置好的國際化資源:
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、對于需要支持的語言,還要修改csproj文件,修改如下:
<SilverlightApplication>true</SilverlightApplication>
<SupportedCultures>zh-CN;en-US;
</SupportedCultures>
<XapOutputs>true</XapOutputs>
<SupportedCultures>zh-CN;en-US;
</SupportedCultures>
<XapOutputs>true</XapOutputs>
---------------------------------------------------------
專注移動開發(fā)
Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian