SfNumericUpDown on iOS shows two % symbols initially when FormatString="p" is used. MaximumDecimalDigits="0" is also not working on iOS, it displays values with two decimal points. I want to display integer values (no decimal points). The following is my code:
MainPage.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:NumericUpDown"
xmlns:numeric="clr-namespace:Syncfusion.SfNumericUpDown.XForms;assembly=Syncfusion.SfNumericUpDown.XForms"
x:Class="NumericUpDown.MainPage">
<numeric:SfNumericUpDown HeightRequest="50" WidthRequest="60" VerticalOptions="Center" SpinButtonAlignment="Both" Value="{Binding percentageCompleted,Mode=TwoWay}" TextAlignment="Center" FormatString="p" Minimum="0" Maximum="100" StepValue="1" TextColor="Black" MaximumDecimalDigits="0" PercentDisplayMode="Value" >
</numeric:SfNumericUpDown>
</ContentPage>
MainPage.xaml.cs
using Xamarin.Forms;
namespace NumericUpDown
{
public partial class MainPage : ContentPage
{
public double PercentageCompleted;
public double percentageCompleted
{
get
{
return PercentageCompleted;
}
set
{
PercentageCompleted = value;
OnPropertyChanged(nameof(percentageCompleted));
}
}
public MainPage()
{
InitializeComponent();
BindingContext = this;
percentageCompleted= 0;
}
}
}
Please provide me a sample resolving my issue. iOS screenshot has been attached.
Product Version I am using : 15.1451.0.41
Attachment:
Screenshot_3b0f1b1c.zip