I am just facing a problem in getting the user set region in Windows Phone 8.1 (SilverLight).
Situation: I have set the Region to United Kingdom
and the language to English(United States)
(it is valid to do that).
In that case I am still getting the region UnitedState(US)
via these methods:
RegionInfo
Thread.CurrentThread
System.Globalization
private static void GetRegion() { // all of the three returing UnitedStates. var dfg = RegionInfo.CurrentRegion; var cuture = Thread.CurrentThread.CurrentCulture; var cul = CultureInfo.CurrentCulture; }
Why do these not return United Kingdom
as a region?