Forum Xamarin Xamarin.Forms

UWP Custom Renderer doesn't show with .NET Native

TomSoderlingTomSoderling USUniversity ✭✭✭

I'm working on a UWP version of NControl for use in my Xamarin.Forms app. NControl is a simple Xamarin.Forms wrapper control around the NGraphics library that allows you to draw stuff with code. Pretty slick: https://github.com/chrfalch/NControl

For each platform, NControl defines a customer renderer. This renderer works just fine, except when I turn on the option to Compile with .NET Native tool chain in the UWP project build properties - then it simply doesn't show up on screen at all. Through debugging, I've confirmed that with this option enabled, the custom renderer's constructor never gets called, and the object isn't in the app's live visual tree either.

Any idea why this would be?

Best Answer

Answers

Sign In or Register to comment.