)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Does SfNumericUpDown responds change in culture

Platform: Xamarin.Forms |
Control: SfNumericUpDown |
Published Date: April 28, 2017 |
Last Revised Date: July 4, 2019

Syncfusion NumericUpDown provides the feature of different type of Culture to mention currency format.

 

To use Culture in SfNumericUpDown follow the below given procedure:

 

Step 1: Create the SfNumericUpDown with all necessary assemblies.

 

Step 2: Set FormatString to Currency format.

 

The below code illustrates the Culture in SfNumericUpDown:

C# Code

namespace NumericUPDown
{
public partial class NumericUPDownPage : ContentPage
{
    public NumericUPDownPage()
    {
        InitializeComponent();
        numericUpDown1.Culture = new System.Globalization.CultureInfo("hi-IN");
        numericUpDown2.Culture = new System.Globalization.CultureInfo("en-US");
        numericUpDown3.Culture = new System.Globalization.CultureInfo("de-DE");
        numericUpDown4.Culture = new System.Globalization.CultureInfo("da-DK");
    }
}
}
 

XAML Code

<StackLayout Padding = "20" >
  < Label Text="India" />
  <numeric:SfNumericUpDown x:Name="numericUpDown1" FormatString="c" Value="5"/>
  <Label Text = "United States" />
  < numeric:SfNumericUpDown x:Name="numericUpDown2" FormatString="c" Value="5"/>
  <Label Text = "German" />
  < numeric:SfNumericUpDown x:Name="numericUpDown3" FormatString="c" Value="5"/>
  <Label Text = "Denmark" />
  < numeric:SfNumericUpDown x:Name="numericUpDown4" FormatString="c" Value="5"/>
</StackLayout> 
 

 

 

Image for Different type of culture in SfNumericalUpDown:

 

SfNumericUpDown Different Type of Culture to mention Currency Format.

 

 

 

 

 

 

 

 

 

 

 

 

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon