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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

125309 Aug 7,2016 09:06 AM Aug 10,2016 09:29 AM Xamarin.Forms 4
loading
Tags: SfAutoComplete
Thomas Bomberg
Asked On August 7, 2016 09:06 AM

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.


Thomas Bomberg
Replied On August 8, 2016 07:23 AM

Entry and Picker with style applied


Autocomplete with style applied

Pavendhan Kumar [Syncfusion]
Replied On August 8, 2016 08:13 AM

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: http://www.syncfusion.com/downloads/support/forum/125309/ze/AutoComplete_125309-1810364687  

Regards,
Pavendhan K. 


Thomas Bomberg
Replied On August 9, 2016 04:26 PM

Thanks a lot, it works fine!

Pavendhan Kumar [Syncfusion]
Replied On August 10, 2016 09:29 AM

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.

CONFIRMATION

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.

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.

;