Articles in this section
Category / Section

Does SfNumericUpDown supports other formats

1 min read

Syncfusion NumericUpDown in Xamarin provides FormatString to denote the Numerical values in Currency, Percentage and Number format. By default, the numbers will be in Number Format. To change it as Currency or Percentage mode use the following procedure.

 

To set FormatString property follow the below given procedure:

 

Step 1: Create SfNumericUpDown and add assemblies to the program.

 

Step 2: Set FormatString as “p” or “P” to display the number Percentage format. Set FormatString as “c” or “C” to display the number in Currency format. Set FormatString as “n” or “N” to display the number in Normal numeric format.

 

The below code illustrates the way to achieve this.

 

Code Snippet

XAML Code

<StackLayout Padding="20">

<numeric:SfNumericUpDown x:Name="numericUpDown" FormatString="c" Value="5"/>

</StackLayout>

 

Image for FormatString = “c”:

SfNumericUpDown Currency Format

 

Image for FormatString = “p”:

SfNumericUpDown Percentage Format

 

 

Image for FormatString = “n”:

SfNumericUpDown Normal Numeric Format

 

 

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