问题
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