This proposal is for a NativeElement and NativeRenderer that would accept graphics primitives defined in Xaml and render them cross platform in a view.
The idea is that users could use these graphic primitives to create custom controls for unified look and feel across platforms.
I've created a PoC around defining graphics primitives using XAML. But of course there are some limitations. The biggest of which is that defining the primitives as UIViews would be a potential performance hit depending on the complexity of the drawing.
Thinking further, I think the concept could work, if there were a single view --which I'm calling NativeRenderElement-- That will be the entry point to providing access to native graphics rendering.
The proposed additions to the API to support this scenario would include
I've provided a working sample that shows an EllipseView with a native renderer that works in iOS and Android. Also, I took the time to verify that hit testing works properly on both (tapping outside the ellipse but within the view's bounding rect is ignored).
The Native Element could be used to create complex controls that need custom rendering. Or for building a custom UI that has a branded look & feel.