Search code examples
c#uwpglobalization

How to get the currency symbol for current user in UWP


Microsoft recommends using Windows.Globalization rather than System.Globalization for UWP apps (Use global-ready formats).

Under Windows.Globalization.NumberFormatting Namespace there is a CurrencyFormatter Class but I do not want to format a number as currency. I want to find how to get the currency symbol only.

What is current best practice for returning the currency symbol for the current user in UWP?


Solution

  • You can use the NumberFormatInfo.CurrencySymbol property for that:

    string currencySymbol = NumberFormatInfo.CurrentInfo.CurrencySymbol;