Forum Xamarin.Forms

How to force ListView to update bounds after the ItemsSource is changed?

YanDuanYanDuan USMember ✭✭

I'd like the ListView to automatically increase its height as items are added to ItemsSource. Is there any non-hacky way to achieve this?

Answers

  • EgorbEgorb USMember

    What does it mean "automatically increase its height"?

  • YanDuanYanDuan USMember ✭✭

    i.e. If each item occupies a height of 30, when there are 2 items, the height of the list should be 60. When the ItemsSource increases to 3 items, I'd like the height of the list to automatically update to 90.

Sign In or Register to comment.