Hi hassan salman,
We have checked the reported issue by preparing the simple sample with setting the Value and getting that value through Button click as you did in below code snippet, that is worked fine at our end.
|
<StackLayout>
<Button Clicked="Button_Clicked"/> <xforms:SfNumericTextBox x:Name="eDose" Value="0"/> </StackLayout>
|
Possible testing cases to replicate the issue:
• Try with changing the ParserMode – Double with the suspecting on some conventional process may cause the issue. But that is worked at our end.
• Another possible case is getting the exception only when having AllowNull property as True, without setting any value, it considered as null - > In that way, if you tried to convert that to double – will cause the issue.
|
<xforms:SfNumericTextBox x:Name="eDose" AllowNull="True"/>
|
Could you please confirm us whether did you enable the AllowNull property?
Or else can you please share the used code snippet along with tried Xamarin.Forms version and Syncfusion SfNumericTextBox NuGet version and share the type exception along with its complete stack trace.
Regards,
Sridevi S.