Numeric Input Value Formatting

The NumericInput provides you the option to define the format of its numeric value. The desired format which will be applied when the control loses focus.

String Format

The StringFormat(string) specifies the string format applied to the numeric value when the control loses focus.

Standard Numeric Format Strings

You can find detailed information about the supported numeric formats in the Standard Numeric Format Strings Microsoft documentation.

Example

Define the NumericInput.

<telerik:RadNumericInput x:Name="numericStrFormat" StringFormat="{}{0:C2}" />

Add the following namespace:

xmlns:telerik="clr-namespace:Telerik.Maui.Controls;assembly=Telerik.Maui.Controls"

The following image shows the end result:

NumericInput String Format

See Also

In this article
Not finding the help you need?