Number Formatting in UWP Numeric TextBox (SfNumericTextBox)

Number formatting functionality allows formatting the text based on the FormatString of the control. The control will format the display text on lost focus.

Format String

The FormatString property determines the format specifier by which the display text has to be formatted.

Default Value of FormatString is N.

The following code sample shows how to display numeric text with currency format.

<Page xmlns:editors="using:Syncfusion.UI.Xaml.Controls.Input">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">

        <editors:SfNumericTextBox HorizontalAlignment="Center"


                               Width="200" x:Name="numericTextBox"




numericTextBox.FormatString = "C";
numericTextBox.FormatString = "C"

FormatString view


A detailed explanation of Numeric formatting is available here.
The result string produced by these format specifiers are influenced by the settings in the Regional Options control panel. Computers with different cultures or different numeric settings will generate different result strings.