Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143274 | Mar 12,2019 04:06 PM UTC | Mar 14,2019 12:36 PM UTC | Xamarin.Forms | 3 |
![]() |
Tags: SfAutoComplete |
I am trying to remove the underline in the Syncfusion Autocomplete plugin ( or atleast make it transparent), this is my code:
[assembly: ExportRenderer(typeof(SfAutoComplete), typeof(AutoCompleteRenderer))]
namespace Pets.Droid
{
public class AutoCompleteRenderer : SfAutoCompleteRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<SfAutoComplete> e)
{
base.OnElementChanged(e);
if (Control != null)
{
GradientDrawable gd = new GradientDrawable();
gd.SetStroke(0, Android.Graphics.Color.Transparent);
Control.SetBackground(gd);
}
}
}
}
but for some reason it wont fire, I also tried to create a custom MyAutoComplete
class that inherits from SfAutoComplete
and change the input in my XAML to local:MyAutoComplete
but same results.
Anyone see what could be the issue?
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.
This page will automatically be redirected to the sign-in page in 10 seconds.