Category / Section
How to truncate the trailing zero's in Xamarin.Forms numeric control (SfNumericTextBox)
1 min read
This section explains how to remove the trailing zero's in Xamarin.Forms NumericTextBox. It has been achieved by setting the Format String property, as shown in the following code snippet.
[XAML]
<StackLayout Margin="10,30,10,10"> <numeric:SfNumericTextBox x:Name="numerictextbox" MaximumNumberDecimalDigits="3" Value="7.400" FormatString="0.##" /> </StackLayout>
Output
See also
Number of decimal digits display