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. Image for the cookie policy date

Border of NumericTextBox

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


4 Replies

HM Hemalatha Marikumar Syncfusion Team 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 

AT Atif June 20, 2016 08:52 PM UTC

Thanks but please iam looking for iOS.


AT Atif 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;

HM Hemalatha Marikumar Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon