How to Get Region Format Settings in Windows Phone 8.1 XAML APP

Since the new WP 8.1 platform, several changes have been made to the CultureInfo class. CultureInfo.CurrentCulture is used to return the format settings of the region. WP 8.1 seems to return the default locale specified in Package.appxmanifest, which has little effect IMO. It is very important for me to have a region format. If there are other ways to get it, I look for them.

+3


source to share


2 answers


According to the msdn article on CultureInfo , try using:

CultureInfo.CurrentUICulture.Name;

      

Look at this too:



http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.defaultthreadcurrentculture(v=vs.110).aspx

Hope it helps!

0


source


This might work:

CultureInfo cc;
regionalFrmt.Text = cc.NativeName;

regionalFrmt.Text = cc.NativeName;

      



Source

0


source







All Articles