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

RendererFactory.GetRenderer() gets native view with no size and layouts.

$
0
0

Hi first of all I'd like to thank for all who works on Xamarin, I love this framework!
Now down to the issue I have.
I have created ContentView with Label and without adding it to page I'm calling RendererFactory.GetRenderer() for that view, but returned native view has no size, I think at lease it should have sized it for accommodating label content. I'm using Xamarin forms for my iOS project.

There is framework method CreateViewController extension method for Page classes and I just was wondering if there is some equivalent for ContentView ? If no such extension method what would be a workaround ?

Thanks
Xasan.


Viewing all articles
Browse latest Browse all 58056

Trending Articles