How can I get the final view size?

andreim123andreim123 USMember
edited April 2017 in Xamarin.Forms

What I'm aiming is to set the ListView RowHeight property so that the items fit exactly in their container. My attempt of doing so is the following:

FolderListView.RowHeight = (int)FolderListView.Height / folders.Length;

The problem is finding the right place to read the FolderListView.Height value. If I do it in the page constructor, the returned value is -1. If I do it in the OnAppearing method, the value is 667, which might seem right, but it's actually larger than the real value.

Sign In or Register to comment.