Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Loading Custom Renderer from Library

$
0
0

So I have been working on a custom renderer to put into a NuGet package. However, I've discovered that in my Windows Phone and iOS apps it just defaults to Xamarin provided renderer. When I load the Modules window, I don't even see my assembly loaded for my renderer for Windows Phone.

If I add this code to the MainPage class, it works and loads the assembly.

CookiesWebViewRenderer renderer = new CookiesWebViewRenderer();

That doesn't seem like a good way to go about it with NuGet packages.

For the iOS application, I added a new class IncludeLinker. It will then work. This I can add to the NuGet package easily enough.

public class IncludeLinker

{
public void Include(CookieWebViewRenderer renderer)
{
renderer.Add(null);
}
}

This solution does not work for the Windows Phone app. Any suggestions?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>