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.
Unfortunately, activation email could not send to your email. Please try again.

How to custom the Border of NumericTextBox

We can customize the border of NumericTextBox by using “BorderColor” property in it. Not only this property, we can also customize the border style like thickness, shapeType of NumericTextBox by using custom renderer class.

 

Using NumericTextBox’s Property:

 

The following code example will helpful to have border color in NumericTextBox by using our “BorderColor “property.

 

Code in Xaml:

 

 

Code in C#

 

 

 

 

Using Custom Renderer:

 

The following code example will helpful to have border style in NumericTextBox by using custom renderer. The following steps are needed to do this with custom renderer

 

Step1: Create our custom NumericTextBox by inheriting the SfNumericTextBox class.

 

Step 2: likewise create a custom SfNumericTextBoxRenderer

class by inheriting SfNumericTextBoxRenderer

 

Code of Custom Renderer in Android:

 

 

 

Code of CustomRenderer in iOS:

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7587 03/23/2017 03/23/2017 Xamarin.Forms SfNumericTextBox
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.