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

Why listview Size is not adjusting automatically?

$
0
0

When my listview collection is changed at runtime why its size is not updating according to the collection.
<ListView x:Name="listview"ItemsSource="{Binding NewDeviceSessionList}"SelectedItem="{Binding DeviceSession, Mode=TwoWay}">

My workaround
listView.HeightRequest = 60 * NewDeviceSessionList.Count;

is there is an any better way than this??


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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