如何在Windows Phone 7中使用多语言

时间:2013-01-08 12:10:17

标签: windows-phone-7

我想在Windows Phone 7中创建多语言应用程序。我是在一个示例的帮助下完成的,但它并没有给我完美的解决方案。这是link

2 个答案:

答案 0 :(得分:0)

This link为您提供了如何解决问题的详细说明。另外,请检查best practices

对于我自己的应用程序,我使用了this guide。古德勒克!

遵循该指南后,您可以在listpicker中使用本地化字符串(根据评论中的要求):

 <toolkit:ListPicker.Items>
                    <ListBoxItem Content="{Binding Path=AppResources.ListPickerOption1, Source={StaticResource LocalizedStrings}}" />
                    <ListBoxItem Content="{Binding Path=AppResources.ListPickerOption2, Source={StaticResource LocalizedStrings}}" />
                    <ListBoxItem Content="{Binding Path=AppResources.ListPickerOption3, Source={StaticResource LocalizedStrings}}" />
  </toolkit:ListPicker.Items>

答案 1 :(得分:0)

您可以查看以下链接:

Windows Phone Localization

您也可以在代码中设置文化:

Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");