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

Integrate a StackLayout with UITableViewCell

$
0
0

I'm writing my own renderer which produces a UITableView (similar to ListView). As part of that process I need to add a StackLayout into my UITableViewCell.

I'm trying to use RendererFactory.GetRenderer(myStackLayout), and then adding the .NativeView into my cell's ContentView, but it does not render correctly. For example, labels which are children of the StackLayout don't get positioned or sized.

What is the correct way to Render a Forms control as a native control and then use it as content of a UITableViewCell?


Viewing all articles
Browse latest Browse all 58056

Trending Articles