Articles in this section
Category / Section

How to display the value with currency symbol in Xamarin.Forms Numeric controls?

2 mins read

The value of numeric text box or numeric up-down controls can be localized to any specific culture by setting the FormatString property value as currency (c – symbol) and changing that specific culture property as follows

 

[C#]

…
 
SfNumericUpDown numericUpDown = new SfNumericUpDown()
{
   …
   Value = 100,
   FormatString = "c",
   Culture = new System.Globalization.CultureInfo("en-US"),
  …
};
…
 
SfNumericTextBox numericTextBox = new SfNumericTextBox()
{
   …
   Value = 1000,
   FormatString = "c",
   Culture = new System.Globalization.CultureInfo("en-US"),
    …
};
…
 

Output

Currency format support for the numeric controls in Xamarin

See Also,

How to customize the numeric controls appearance

How to format the numeric value

How to restrict the value entry in numeric control


Conclusion

I hope you enjoyed learning about how to customize the value with the currency symbol in Xamarin.Forms Numeric Controls.

You can refer to our Xamarin Numeric control's feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.

For current customers, you can check out our Xamarin controls from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied