Register the RadSideDrawer 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.Primitives.RadSideDrawer), typeof(Telerik.XamarinForms.PrimitivesRenderer.Android.SideDrawerRenderer))]

iOS Project

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

[assembly: ExportRenderer(typeof(Telerik.XamarinForms.Primitives.RadSideDrawer), typeof(Telerik.XamarinForms.PrimitivesRenderer.iOS.SideDrawerRenderer))]

You also have to create an instance of the renderer in the FinishedLaunching(...) method before the Forms.Init() call which is called right before the TelerikForms.Init() call.

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

    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 outside the scope of the namespace just after the using statements:

[assembly: Xamarin.Forms.Platform.UWP.ExportRenderer(typeof(Telerik.XamarinForms.Primitives.RadSideDrawer), typeof(Telerik.XamarinForms.PrimitivesRenderer.UWP.SideDrawerRenderer))]

Windows 8.1 and Windows Phone 8.1 Projects

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

[assembly: Xamarin.Forms.Platform.WinRT.ExportRenderer(typeof(Telerik.XamarinForms.Primitives.RadSideDrawer), typeof(Telerik.XamarinForms.PrimitivesRenderer.WinRT.SideDrawerRenderer))]

See Also