New to Telerik UI for .NET MAUI? Start a free 30-day trial

.NET MAUI Numeric Format String

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 StringFormat="{}{0:P2}" AutomationId="numericStringFormat"/>

Add the telerik namespace:

xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"

Check below the result on different platforms:

NumericInput String Format

See Also

In this article