SfAutoCompleteRenderer not working

[assembly: ExportRenderer(typeof(SfAutoComplete), typeof(CustomAutoComplete))]
namespace Test.WinUniversal.Renderers
{
    public class CustomAutoComplete : SfAutoCompleteRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs<SfAutoComplete> e)
        {
            base.OnElementChanged(e);
            if (Control == null)
                return;

            Control.BorderThickness = new Windows.UI.Xaml.Thickness(1);
            Control.BorderBrush = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 209, 209, 209));
            Control.WatermarkForeground = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 134, 134, 133));
        }
    }
}

SfAutoCompleteRenderer not working

3 Replies

SK Selva Kumar  Veerakrishnan Syncfusion Team October 10, 2017 01:20 PM UTC

Hi Syed,

Thank you for contacting Syncfusion Support.

We have prepared a SfAutoCompleteRenderer sample for your reference, in which we have modified the renderer page with the below given code. Please download the sample from the below link.

[assembly: ExportRenderer(typeof(MySample), typeof(CustomSfAutocomplete))]

Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoCompelte-1493729986.zip

In addition to that, please refer the below given link for adding Renderer to the control.

https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/custom-renderer/entry/#Creating_the_Custom_Renderer_on_Windows_Phone_and_UWP

Please let us know if you have any concern about this.

Regards,
Selva kumar V.



AA Abdul Aala October 10, 2017 02:14 PM UTC

Cool thanks :)



SK Selva Kumar  Veerakrishnan Syncfusion Team October 11, 2017 01:03 PM UTC

Hi Syed,

Thanks for your response. Please get back to us if you required any assistance on this.

Regards,
Selva Kumar V.

Loader.
Up arrow icon