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
close icon

Style of Autocomplete - round corners (SerCornerRadius) do not work as expected

Hallo!

I use round corners for all text controls in the application:

[IMG]http://i68.tinypic.com/250hxkj.png[/IMG]

For doing this I created renderes for Entry and Picker controls (in Android part of the solution) and overrided OnElementChanged method:

base.OnElementChanged( args );

if ( Control != null ) 
{
GradientDrawable gd = new GradientDrawable();
gd.SetColor(Color.Transparent.ToAndroid());
gd.SetCornerRadius (10);
gd.SetStroke (2, Color.Gray.ToAndroid());
this.Control.SetBackgroundDrawable(gd);
}

When I did the same for SfAutoComplete control it does not work as expected (it renders both rectangle and round corners):

[IMG]http://i64.tinypic.com/29uzqlv.jpg[/IMG]

Please suggest what should be done to have the same style as entry and picker.


4 Replies

TB Thomas Bomberg August 8, 2016 11:23 AM UTC

Entry and Picker with style applied


Autocomplete with style applied


PK Pavendhan Kumar Syncfusion Team August 8, 2016 12:13 PM UTC

Hi Thomas,

Thank you for contacting Syncfusion support.

Query: Round Corners on AutoComplete

From given code snippets we have created a sample using SfAutoComplete as per your requirement (“Rounded Corners”) . Please download the same from the below mentioned link.

Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoComplete_125309-1810364687364598893.zip  

Regards,
Pavendhan K. 



TB Thomas Bomberg August 9, 2016 08:26 PM UTC

Thanks a lot, it works fine!


PK Pavendhan Kumar Syncfusion Team August 10, 2016 01:29 PM UTC

Hi Thomas,

Thanks for your update.

We are glad to hear that you have achieved your requirement. Please let us know if you need any further assistance.

Regards,
Pavendhan K.

Loader.
Live Chat Icon For mobile
Up arrow icon