How to customize its appearance of Numeric control in Xamarin.Forms?
This article explains how to change the default appearance of both the SfNumericTextBox and SfNumericUpDown controls in Xamarin.Forms NumericTextBox by using its available color customization properties like BackgroundColor, TextColor, and WatermarkColor as per in the following code snippets.
[XAML]
… <xforms:SfNumericTextBox HorizontalOptions="Center" BackgroundColor="Black" BorderColor="White" TextColor="#dd47e8" Value="1000" FormatString="c" /> … <xforms1:SfNumericUpDown HorizontalOptions="Center" WidthRequest="200" BorderColor="White" BackgroundColor="Black" TextColor="#dd47e8" Value="1000" FormatString="c" > <xforms1:SfNumericUpDown.DecrementButtonSettings> <xforms1:UpDownButtonSettings BackgroundColor="#f69d7b"/> </xforms1:SfNumericUpDown.DecrementButtonSettings> <xforms1:SfNumericUpDown.IncrementButtonSettings> <xforms1:UpDownButtonSettings BackgroundColor="#60b976"/> </xforms1:SfNumericUpDown.IncrementButtonSettings> </xforms1:SfNumericUpDown> …
Output
See Also
How to display the value with
currency symbol in Xamarin.Forms numeric controls
How
to customize the font in numeric controls in Xamarin.Forms
How
to format the numeric value
How
to restrict the value entry in numeric control
How
to customize the appearance of spin button in Xamarin.Forms SfNumericUpDown
Conclusion
I hope you enjoyed learning about how to customize its appearance of Numeric control in Xamarin.Forms.
You can refer to our Xamarin.Forms Numeric TextBox feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!