Register the AutoComplete renderer

Android Project

You have to add the following line to the MainActivity.cs file outside the scope of the namespace just after the using statements:

[assembly: ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.Android.AutoCompleteRenderer))]

iOS Project

You have to add the following line to the AppDelegate.cs file outisde the scope of the namespace just after the using statements:

[assembly: ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.iOS.AutoCompleteRenderer))]

You also have to create an instance of the renderer in the FinishedLaunching(...) method before the Forms.Init() call and right after it call the TelerikForms.Init().

public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
    new Telerik.XamarinForms.InputRenderer.iOS.AutoCompleteRenderer();

    Xamarin.Forms.Forms.Init();
    Telerik.XamarinForms.Common.iOS.TelerikForms.Init();

    this.LoadApplication(new App());

    return base.FinishedLaunching(app, options);
}

UWP Project

You have to add the following line to the MainPage.xaml.cs file outisde the scope of the namespace just after the using statements:

[assembly: Xamarin.Forms.Platform.UWP.ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.UWP.AutoCompleteRenderer))]

Windows 8.1 and Windows Phone 8.1 Projects

You have to add the following line to the MainPage.xaml.cs file outisde the scope of the namespace just after the using statements:

[assembly: Xamarin.Forms.Platform.UWP.ExportRenderer(typeof(Telerik.XamarinForms.Input.RadAutoComplete), typeof(Telerik.XamarinForms.InputRenderer.UWP.AutoCompleteRenderer))]

Windows Phone 8 Project

AutoComplete is not available for WindowsPhone 8.0

See Also