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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Border of NumericTextBox

Thread ID:





124624 Jun 19,2016 03:44 AM UTC Jun 21,2016 12:12 PM UTC Xamarin.Forms 4
Tags: SfNumericTextBox
Asked On June 19, 2016 03:44 AM UTC

Hi please guide me is there anyway to change the border color same as like Entry Control.


Hemalatha Marikumar [Syncfusion]
Replied On June 20, 2016 12:07 PM UTC

Hi Atif,

Thanks for contacting Syncfusion Support.

Currently we do not have direct support to change the border color of SfNumericTextBox. We have created a workaround sample to achieve your requirement. Please download the same from the following link

Link: http://www.syncfusion.com/downloads/support/forum/124624/ze/NumericTextBox-1998783776 

protected override void OnElementChanged(ElementChangedEventArgs<SfNumericTextBox> e)


if (Control != null)

GradientDrawable gd = new GradientDrawable();

//By passing the color to stroke we can change the border color of NumericTextBox

gd.SetStroke(4, Android.Graphics.Color.DarkRed);

Hemalatha M.R 

Replied On June 20, 2016 08:52 PM UTC

Thanks but please iam looking for iOS.


Replied On June 20, 2016 08:55 PM UTC

I have done it, Actually in iOS it is straight forward.

  protected override void OnElementPropertyChanged (object sender, System.ComponentModel.PropertyChangedEventArgs e)
            base.OnElementPropertyChanged (sender, e);

            if (Control != null) {
                Control.BorderStyle = UIKit.UITextBorderStyle.RoundedRect;

Hemalatha Marikumar [Syncfusion]
Replied On June 21, 2016 12:12 PM UTC

Hi Atif,

Thanks for your update .

We are glad to hear that you have achieved your requirement.

Hemalatha M.R


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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