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

Full page TableView

$
0
0

Hi there,

I'm trying to build something like a blogpost View within Xamarin forms. It consits of some Labels on top, below that a WebView and under the WebView I would like to have a listview of comments.

Since I don't want the ListView to scroll on it's own, I made a renderer which sets the scrolling to false. Next thing I need to do is set the Height of the listview so it grows to the right size.

I'm having trouble with that last part.. since I load my data async it means my ContentSize.Height = 0 when my renderer is being loaded. I can't find a good solution to trigger the renderer to resize.

I'm also using UnEvenRows, which means my row heights can be different.. so I can't do something like this:
this.ListViewComments.HeightRequest = this.ListViewComments.RowHeight * this.viewModel.Items.Count;

Does anyone know what the right approach for this is?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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