How to get “region & language” settings in WP7 via code?

天大地大妈咪最大 提交于 2019-11-30 02:48:53

问题


Is it possible to get following settings via the API?

  • First day of week
  • Region format
  • Display language
  • System locate

回答1:


You can use CultureInfo.CurrentCulture and CultureInfo.CurrentUICulture to find the system culture and language settings respectively. The rest of the information (first day of week etc) is within there, I believe - for example:

DayOfWeek firstDayOfWeek = CultureInfo.CurrentCulture
                                      .DateTimeFormat
                                      .FirstDayOfWeek;


来源:https://stackoverflow.com/questions/4656911/how-to-get-region-language-settings-in-wp7-via-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!